diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-16 23:20:39 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-16 23:20:39 +0000 |
commit | a835d97c19519ca676a60d6905cb9e056af08b1b (patch) | |
tree | 11b7abf437cd9524346647cb9c25a44a2d76da0b /Objects/stringobject.c | |
parent | 84d7b36695304b4d6ea2ccc6c7590ff523c8b06d (diff) | |
download | cpython-a835d97c19519ca676a60d6905cb9e056af08b1b.tar.gz |
Get this to compile again if Py_USING_UNICODE is not defined.
com_error() is static in Python/compile.c.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |