diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-12-18 22:36:40 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-12-18 22:36:40 (GMT) |
commit | 8d3ce5a6b3b275fe58af51fe19a915216f69d3c9 (patch) | |
tree | 6633ce96bcea08704b5363aa68fe7b3560b8215b /Python | |
parent | a255a72f0a5d33c1d28547dfb2f7d320a2ca1773 (diff) | |
download | cpython-8d3ce5a6b3b275fe58af51fe19a915216f69d3c9.zip cpython-8d3ce5a6b3b275fe58af51fe19a915216f69d3c9.tar.gz cpython-8d3ce5a6b3b275fe58af51fe19a915216f69d3c9.tar.bz2 |
Patch #494384: Disable more Unicode API if Unicode is not used.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 91a74e4..94cf17e 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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); |