summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
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;