[Python-checkins] CVS: python/dist/src/Python ceval.c,2.299,2.300
Martin v. L?wis
loewis@users.sourceforge.net
Tue, 18 Dec 2001 14:36:42 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv14723
Modified Files:
ceval.c
Log Message:
Patch #494384: Disable more Unicode API if Unicode is not used.
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.299
retrieving revision 2.300
diff -C2 -d -r2.299 -r2.300
*** ceval.c 2001/12/16 19:44:20 2.299
--- ceval.c 2001/12/18 22:36:40 2.300
***************
*** 1363,1366 ****
--- 1363,1367 ----
PyFile_SoftSpace(w, 0);
}
+ #ifdef Py_USING_UNICODE
else if (PyUnicode_Check(v)) {
Py_UNICODE *s = PyUnicode_AS_UNICODE(v);
***************
*** 1371,1374 ****
--- 1372,1376 ----
PyFile_SoftSpace(w, 0);
}
+ #endif
}
Py_DECREF(v);