From: Neal Norwitz Date: Tue, 20 May 2008 04:39:15 +0000 (+0000) Subject: Remove duplicate check for PyLong_Check(). It was checked above. X-Git-Tag: v3.0b1~274 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1fc34a56cb578164cb9813e987fb0905d795180;p=thirdparty%2FPython%2Fcpython.git Remove duplicate check for PyLong_Check(). It was checked above. --- diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index d7aba68f99f3..45d842f39072 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 "