]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change error message for array methods to use 'array' instead of 'list'. (#1853)
authorJim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
Mon, 29 May 2017 17:43:39 +0000 (20:43 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 May 2017 17:43:39 +0000 (20:43 +0300)
Modules/arraymodule.c

index 412e39e95133fbb2f86dab474a36ac61883ff6f8..abb578aed340a97abc6f7675958f5c787e9fe722 100644 (file)
@@ -1090,7 +1090,7 @@ array_array_index(arrayobject *self, PyObject *v)
         else if (cmp < 0)
             return NULL;
     }
-    PyErr_SetString(PyExc_ValueError, "array.index(x): x not in list");
+    PyErr_SetString(PyExc_ValueError, "array.index(x): x not in array");
     return NULL;
 }
 
@@ -1142,7 +1142,7 @@ array_array_remove(arrayobject *self, PyObject *v)
         else if (cmp < 0)
             return NULL;
     }
-    PyErr_SetString(PyExc_ValueError, "array.remove(x): x not in list");
+    PyErr_SetString(PyExc_ValueError, "array.remove(x): x not in array");
     return NULL;
 }