]> granicus.if.org Git - python/commitdiff
fix poor spelling
authorBenjamin Peterson <benjamin@python.org>
Mon, 14 Apr 2014 16:15:28 +0000 (12:15 -0400)
committerBenjamin Peterson <benjamin@python.org>
Mon, 14 Apr 2014 16:15:28 +0000 (12:15 -0400)
Modules/_json.c

index 4d0f3c473afd3c4f013c4410c519cde0b3ac7d3f..66e5958b43b954b5caa915824c68e7fa2fde52db 100644 (file)
@@ -931,7 +931,7 @@ scan_once_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_
     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) {