diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-30 15:29:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 15:29:23 (GMT) |
commit | d4edfc9abffca965e76ebc5957a92031a4d6c4d4 (patch) | |
tree | d985a5ba3c7dd8ec3183014962d650724f61ece9 /Modules | |
parent | 762ec97ea68a1126b8855996c61fa8239dc9fff7 (diff) | |
download | cpython-d4edfc9abffca965e76ebc5957a92031a4d6c4d4.zip cpython-d4edfc9abffca965e76ebc5957a92031a4d6c4d4.tar.gz cpython-d4edfc9abffca965e76ebc5957a92031a4d6c4d4.tar.bz2 |
bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887)
when pass indices of wrong type.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_collectionsmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index b052535..6f78796 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -1066,8 +1066,8 @@ deque_index(dequeobject *deque, PyObject **args, Py_ssize_t nargs, return NULL; } if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index", &v, - _PyEval_SliceIndex, &start, - _PyEval_SliceIndex, &stop)) { + _PyEval_SliceIndexNotNone, &start, + _PyEval_SliceIndexNotNone, &stop)) { return NULL; } |