Remove duplicate check for PyLong_Check(). It was checked above.
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 20 May 2008 04:39:15 +0000 (04:39 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 20 May 2008 04:39:15 +0000 (04:39 +0000)
Modules/mathmodule.c

index d7aba68f99f3e468c2fec1fa326ba817977ee232..45d842f3907226ea0b35f6391d73460aaf9d64b3 100644 (file)
@@ -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 "