commit | 1fe5f388529dcdf674d53f7d67abc16c9c6ca5e5 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Fri Aug 31 04:32:55 2007 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Fri Aug 31 04:32:55 2007 +0000 |
tree | b35d6a88c4ded09687f9916e4d4c0b03bafde580 | |
parent | 538d17aa233e99a0652d0c6d482845e8e909b6e0 [diff] [blame] |
Remove checking redundantly for checks of PyInt and PyLong.
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index eb66c79..d160b07 100644 --- a/Objects/sliceobject.c +++ b/Objects/sliceobject.c
@@ -106,7 +106,7 @@ if (r->step == Py_None) { *step = 1; } else { - if (!PyInt_Check(r->step) && !PyLong_Check(r->step)) return -1; + if (!PyLong_Check(r->step)) return -1; *step = PyInt_AsSsize_t(r->step); } if (r->start == Py_None) {