diff Python/bltinmodule.c @ 77072:d7aff4423172 2.7

Issue #8767: Restore building with --disable-unicode. Original patch by Stefano Taschini.
author Martin v. Löwis <martin@v.loewis.de>
date Sun, 20 May 2012 10:42:17 +0200
parents 39573be48b4a
children 751f28564a45
line wrap: on
line diff
--- a/Python/bltinmodule.c	Sat May 19 23:35:05 2012 -0700
+++ b/Python/bltinmodule.c	Sun May 20 10:42:17 2012 +0200
@@ -1578,6 +1578,7 @@
             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 @@
             Py_CLEAR(unicode_space);
             return NULL;
         }
+#endif
     }
     if (!PyArg_ParseTupleAndKeywords(dummy_args, kwds, "|OOO:print",
                                      kwlist, &sep, &end, &file))