diff Objects/unicodeobject.c @ 12902:98eb3059ae76 legacy-trunk

Patch from Michael Hudson: improve unclear error message
author Andrew M. Kuchling <amk@amk.ca>
date Fri, 09 Jun 2000 14:04:53 +0000
parents 9df91f91e5cc
children be36f103a953
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Fri Jun 09 06:01:47 2000 +0000
+++ b/Objects/unicodeobject.c	Fri Jun 09 14:04:53 2000 +0000
@@ -2996,7 +2996,7 @@
     /* 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);