PyFile_WriteObject(): some of the local variables are only used when

Py_USING_UNICODE is defined
This commit is contained in:
Fred Drake 2004-03-19 15:22:36 +00:00
parent 8e6ad6fbe9
commit 086a0f79cd

View file

@ -2005,8 +2005,10 @@ PyFile_WriteObject(PyObject *v, PyObject *f, int flags)
}
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();
return -1;