From 8d3ce5a6b3b275fe58af51fe19a915216f69d3c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 18 Dec 2001 22:36:40 +0000 Subject: [PATCH] Patch #494384: Disable more Unicode API if Unicode is not used. --- Python/ceval.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.50.1