Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 21475:aac23331a25d legacy-trunk
Patch #494384: Disable more Unicode API if Unicode is not used.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Tue, 18 Dec 2001 22:36:40 +0000 |
| parents | 05ad7a69d933 |
| children | ccb26a118867 |
line wrap: on
line diff
--- a/Python/ceval.c Tue Dec 18 22:32:40 2001 +0000 +++ b/Python/ceval.c Tue Dec 18 22:36:40 2001 +0000 @@ -1362,6 +1362,7 @@ 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 @@ s[len-1] != ' ') PyFile_SoftSpace(w, 0); } +#endif } Py_DECREF(v); Py_XDECREF(stream);
