[Python-checkins] cpython (3.2): fix poor spelling

benjamin.peterson python-checkins at python.org
Mon Apr 14 18:16:30 CEST 2014


http://hg.python.org/cpython/rev/0a7d4cdc4c8d
changeset:   90265:0a7d4cdc4c8d
branch:      3.2
parent:      90257:95d06fc2616b
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Apr 14 12:15:28 2014 -0400
summary:
  fix poor spelling

files:
  Modules/_json.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_json.c b/Modules/_json.c
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -931,7 +931,7 @@
     Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr);
     Py_ssize_t length = PyUnicode_GET_SIZE(pystr);
     if (idx < 0) {
-        PyErr_SetString(PyExc_ValueError, "idx canont be negative");
+        PyErr_SetString(PyExc_ValueError, "idx cannot be negative");
         return NULL;
     }
     if (idx >= length) {

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list