diff options
author | Guido van Rossum <guido@python.org> | 2007-02-26 05:44:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-26 05:44:27 (GMT) |
commit | 032a284752c4258be41a8b6a9658da55bb157273 (patch) | |
tree | a3e4946211dce7a933c2e685696a421e7cc8f281 | |
parent | 5e0af3c3be19a638130e75da94f79e47513168c1 (diff) | |
download | cpython-032a284752c4258be41a8b6a9658da55bb157273.zip cpython-032a284752c4258be41a8b6a9658da55bb157273.tar.gz cpython-032a284752c4258be41a8b6a9658da55bb157273.tar.bz2 |
Don't confound Neil S on b"a"[0] = b"b".
-rw-r--r-- | Objects/abstract.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index dbd159a..a301287 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -805,7 +805,7 @@ PyNumber_Index(PyObject *item) 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 @@ PyNumber_Index(PyObject *item) 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; } |