mirror of https://github.com/python/cpython
Patch #494384: Disable more Unicode API if Unicode is not used.
This commit is contained in:
parent
a255a72f0a
commit
8d3ce5a6b3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue