diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-20 04:39:15 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-20 04:39:15 (GMT) |
commit | c1fc34a56cb578164cb9813e987fb0905d795180 (patch) | |
tree | f910748a2b11830b06c450dff67397445609dfe5 /Modules | |
parent | bf6f0aa837772174cc2cc59c046eec0b5c8b8465 (diff) | |
download | cpython-c1fc34a56cb578164cb9813e987fb0905d795180.zip cpython-c1fc34a56cb578164cb9813e987fb0905d795180.tar.gz cpython-c1fc34a56cb578164cb9813e987fb0905d795180.tar.bz2 |
Remove duplicate check for PyLong_Check(). It was checked above.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mathmodule.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index d7aba68..45d842f 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -450,9 +450,6 @@ math_ldexp(PyObject *self, PyObject *args) } } } - else if (PyLong_Check(oexp)) { - exp = PyLong_AS_LONG(oexp); - } else { PyErr_SetString(PyExc_TypeError, "Expected an int or long as second argument " |