summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-05-20 04:39:15 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-05-20 04:39:15 (GMT)
commitc1fc34a56cb578164cb9813e987fb0905d795180 (patch)
treef910748a2b11830b06c450dff67397445609dfe5 /Modules/mathmodule.c
parentbf6f0aa837772174cc2cc59c046eec0b5c8b8465 (diff)
downloadcpython-c1fc34a56cb578164cb9813e987fb0905d795180.zip
cpython-c1fc34a56cb578164cb9813e987fb0905d795180.tar.gz
cpython-c1fc34a56cb578164cb9813e987fb0905d795180.tar.bz2
Remove duplicate check for PyLong_Check(). It was checked above.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c3
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 "