]> granicus.if.org Git - python/commitdiff
Patch #494384: Disable more Unicode API if Unicode is not used.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 18 Dec 2001 22:36:40 +0000 (22:36 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 18 Dec 2001 22:36:40 +0000 (22:36 +0000)
Python/ceval.c

index 91a74e43aea8e27843829d00ff781d96fc0397de..94cf17e0d4580c9328ffbc3604ebfbb68ec6ee61 100644 (file)
@@ -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);