From c1fc34a56cb578164cb9813e987fb0905d795180 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Tue, 20 May 2008 04:39:15 +0000 Subject: Remove duplicate check for PyLong_Check(). It was checked above. --- Modules/mathmodule.c | 3 --- 1 file changed, 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 " -- cgit v0.12