diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-05-20 08:42:17 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-05-20 08:42:17 (GMT) |
commit | ed11a5d018e3fc234d7126832756a15c1af67d22 (patch) | |
tree | 4f5ee76e85299c314f1e923db480f3733bf48313 /Python/bltinmodule.c | |
parent | 77e77a12731ad937e6567a2c0dea7dc51c80c69a (diff) | |
download | cpython-ed11a5d018e3fc234d7126832756a15c1af67d22.zip cpython-ed11a5d018e3fc234d7126832756a15c1af67d22.tar.gz cpython-ed11a5d018e3fc234d7126832756a15c1af67d22.tar.bz2 |
Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index c25588a..373f870 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1578,6 +1578,7 @@ builtin_print(PyObject *self, PyObject *args, PyObject *kwds) Py_CLEAR(str_newline); return NULL; } +#ifdef Py_USING_UNICODE unicode_newline = PyUnicode_FromString("\n"); if (unicode_newline == NULL) { Py_CLEAR(str_newline); @@ -1591,6 +1592,7 @@ builtin_print(PyObject *self, PyObject *args, PyObject *kwds) Py_CLEAR(unicode_space); return NULL; } +#endif } if (!PyArg_ParseTupleAndKeywords(dummy_args, kwds, "|OOO:print", kwlist, &sep, &end, &file)) |