summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-14 12:15:28 -0400
committerBenjamin Peterson <benjamin@python.org>2014-04-14 12:15:28 -0400
commit6bc02a70b13809880b296947f37e598086005fb8 (patch)
treec653582c3c1f45b904e1e4d3ccdc3d8da99d359d
parent481c7b90589e7a3ef34e44a7d6dd3dd38a8158be (diff)
downloadcpython-6bc02a70b13809880b296947f37e598086005fb8.tar.gz
fix poor spelling
-rw-r--r--Modules/_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c
index b1c3108cbc..595d6c89f4 100644
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -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) {