From: Neal Norwitz Date: Fri, 16 Aug 2002 23:20:39 +0000 (+0000) Subject: Get this to compile again if Py_USING_UNICODE is not defined. X-Git-Tag: v2.3c1~4424 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b898d9fc9a434eb9ae9d3d10d0f1d379492cd6f6;p=thirdparty%2FPython%2Fcpython.git Get this to compile again if Py_USING_UNICODE is not defined. com_error() is static in Python/compile.c. --- diff --git a/Objects/stringobject.c b/Objects/stringobject.c index bf1c58eab259..2626d3c89177 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -619,7 +619,7 @@ PyObject *PyString_DecodeEscape(const char *s, case 'U': case 'N': if (unicode) { - com_error(com, PyExc_ValueError, + PyErr_SetString(PyExc_ValueError, "Unicode escapes not legal " "when Unicode disabled"); goto failed;