mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
Remove duplicate check for PyLong_Check(). It was checked above.
This commit is contained in:
parent
bf6f0aa837
commit
c1fc34a56c
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user