From: Martin v. Löwis Date: Tue, 18 Dec 2001 22:36:40 +0000 (+0000) Subject: Patch #494384: Disable more Unicode API if Unicode is not used. X-Git-Tag: v2.2.1c1~307 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d3ce5a6b3b275fe58af51fe19a915216f69d3c9;p=python Patch #494384: Disable more Unicode API if Unicode is not used. --- diff --git a/Python/ceval.c b/Python/ceval.c index 91a74e43ae..94cf17e0d4 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);