]> git.ipfire.org Git - thirdparty/Python/cpython.git/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 b1c3108cbc0ae56233b3e3c43c0ca6cbc7ed6fcb..595d6c89f4b2c82d33bd5aabeb82a54b207e9496 100644 (file)
@@ -903,7 +903,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) {