summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-08-16 23:20:39 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-08-16 23:20:39 (GMT)
commitb898d9fc9a434eb9ae9d3d10d0f1d379492cd6f6 (patch)
tree2161cc3796f562c875028e5376a4b99d1a0a25c6 /Objects/stringobject.c
parent68ee0128a2e213ebf69a3ecc92a03310edf47c16 (diff)
downloadcpython-b898d9fc9a434eb9ae9d3d10d0f1d379492cd6f6.zip
cpython-b898d9fc9a434eb9ae9d3d10d0f1d379492cd6f6.tar.gz
cpython-b898d9fc9a434eb9ae9d3d10d0f1d379492cd6f6.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index bf1c58e..2626d3c 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;