diff options
author | Georg Brandl <georg@python.org> | 2007-10-23 19:24:22 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-10-23 19:24:22 (GMT) |
commit | e1a0d11c5cceeb71b22f3e3148f8f7d6bc0b4d8f (patch) | |
tree | b189190df6a08b5249bef4e33385049f4ccf3d04 /Modules/_sqlite/row.c | |
parent | 083bea49a8b74a5f758c6641c299f0cc8c114616 (diff) | |
download | cpython-e1a0d11c5cceeb71b22f3e3148f8f7d6bc0b4d8f.zip cpython-e1a0d11c5cceeb71b22f3e3148f8f7d6bc0b4d8f.tar.gz cpython-e1a0d11c5cceeb71b22f3e3148f8f7d6bc0b4d8f.tar.bz2 |
#1316: remove redundant PyLong_Check calls when PyInt_Check was already called.
Diffstat (limited to 'Modules/_sqlite/row.c')
-rw-r--r-- | Modules/_sqlite/row.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Modules/_sqlite/row.c b/Modules/_sqlite/row.c index b2f105a..2f3ba69 100644 --- a/Modules/_sqlite/row.c +++ b/Modules/_sqlite/row.c @@ -76,12 +76,7 @@ PyObject* pysqlite_row_subscript(pysqlite_Row* self, PyObject* idx) PyObject* item; - if (PyInt_Check(idx)) { - _idx = PyInt_AsLong(idx); - item = PyTuple_GetItem(self->data, _idx); - Py_XINCREF(item); - return item; - } else if (PyLong_Check(idx)) { + if (PyLong_Check(idx)) { _idx = PyLong_AsLong(idx); item = PyTuple_GetItem(self->data, _idx); Py_XINCREF(item); |