[Python-checkins] python/dist/src/Objects fileobject.c, 2.179.8.4, 2.179.8.5

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Fri Mar 19 10:23:16 EST 2004


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22559
Modified Files:
 Tag: release23-maint
	fileobject.c 
Log Message:
PyFile_WriteObject(): some of the local variables are only used when
 Py_USING_UNICODE is defined
Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.179.8.4
retrieving revision 2.179.8.5
diff -C2 -d -r2.179.8.4 -r2.179.8.5
*** fileobject.c	18 Oct 2003 09:37:12 -0000	2.179.8.4
--- fileobject.c	19 Mar 2004 15:23:14 -0000	2.179.8.5
***************
*** 2075,2080 ****
--- 2075,2082 ----
 	else if (PyFile_Check(f)) {
 		FILE *fp = PyFile_AsFile(f);
+ #ifdef Py_USING_UNICODE
 		PyObject *enc = ((PyFileObject*)f)->f_encoding;
 		int result;
+ #endif
 		if (fp == NULL) {
 			err_closed();


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /