Commit 086a0f79 authored by Fred Drake's avatar Fred Drake

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

                       Py_USING_UNICODE is defined
parent 8e6ad6fb
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment