Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 24872:cf561e612378 legacy-trunk
Get this to compile again if Py_USING_UNICODE is not defined.
com_error() is static in Python/compile.c.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 16 Aug 2002 23:20:39 +0000 |
| parents | a602e4878b4e |
| children | a869d2de536f |
line wrap: on
line diff
--- a/Objects/stringobject.c Fri Aug 16 19:28:59 2002 +0000 +++ b/Objects/stringobject.c Fri Aug 16 23:20:39 2002 +0000 @@ -619,7 +619,7 @@ case 'U': case 'N': if (unicode) { - com_error(com, PyExc_ValueError, + PyErr_SetString(PyExc_ValueError, "Unicode escapes not legal " "when Unicode disabled"); goto failed;
