[Python-3000-checkins] r53929 - python/branches/p3yk/Objects/abstract.c
guido.van.rossum
python-3000-checkins at python.org
Mon Feb 26 06:44:29 CET 2007
Author: guido.van.rossum
Date: Mon Feb 26 06:44:27 2007
New Revision: 53929
Modified:
python/branches/p3yk/Objects/abstract.c
Log:
Don't confound Neil S on b"a"[0] = b"b".
Modified: python/branches/p3yk/Objects/abstract.c
==============================================================================
--- python/branches/p3yk/Objects/abstract.c (original)
+++ python/branches/p3yk/Objects/abstract.c Mon Feb 26 06:44:27 2007
@@ -805,7 +805,7 @@
if (result &&
!PyInt_Check(result) && !PyLong_Check(result)) {
PyErr_Format(PyExc_TypeError,
- "__index__ returned non-int " \
+ "__index__ returned non-int "
"(type %.200s)",
result->ob_type->tp_name);
Py_DECREF(result);
@@ -815,7 +815,7 @@
else {
PyErr_Format(PyExc_TypeError,
"'%.200s' object cannot be interpreted "
- "as an index", item->ob_type->tp_name);
+ "as an integer", item->ob_type->tp_name);
}
return result;
}
More information about the Python-3000-checkins
mailing list