Commit 55eb0fb2 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #494384: Disable more Unicode API if Unicode is not used.

parent 14a87cf9
......@@ -1362,6 +1362,7 @@ eval_frame(PyFrameObject *f)
s[len-1] != ' ')
PyFile_SoftSpace(w, 0);
}
#ifdef Py_USING_UNICODE
else if (PyUnicode_Check(v)) {
Py_UNICODE *s = PyUnicode_AS_UNICODE(v);
int len = PyUnicode_GET_SIZE(v);
......@@ -1370,6 +1371,7 @@ eval_frame(PyFrameObject *f)
s[len-1] != ' ')
PyFile_SoftSpace(w, 0);
}
#endif
}
Py_DECREF(v);
Py_XDECREF(stream);
......
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