From a835d97c19519ca676a60d6905cb9e056af08b1b Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 16 Aug 2002 23:20:39 +0000 Subject: Get this to compile again if Py_USING_UNICODE is not defined. com_error() is static in Python/compile.c. --- Objects/stringobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/stringobject.c') diff --git a/Objects/stringobject.c b/Objects/stringobject.c index bf1c58eab2..2626d3c891 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; -- cgit v1.2.1