diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-06-09 14:04:53 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-06-09 14:04:53 (GMT) |
commit | cb95a1470ace2d64db306f51203852e8d6d43d1b (patch) | |
tree | 4579437b407882409f374658a1e678a9990c149b /Objects/unicodeobject.c | |
parent | b422f95db091ffc5ca8ef44bc6efcf4e772cd676 (diff) | |
download | cpython-cb95a1470ace2d64db306f51203852e8d6d43d1b.zip cpython-cb95a1470ace2d64db306f51203852e8d6d43d1b.tar.gz cpython-cb95a1470ace2d64db306f51203852e8d6d43d1b.tar.bz2 |
Patch from Michael Hudson: improve unclear error message
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 5548748..1ea83f6 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2996,7 +2996,7 @@ int PyUnicode_Contains(PyObject *container, /* Check v in u */ if (PyUnicode_GET_SIZE(v) != 1) { PyErr_SetString(PyExc_TypeError, - "string member test needs char left operand"); + "'in <string>' requires character as left operand"); goto onError; } ch = *PyUnicode_AS_UNICODE(v); |