mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Remove duplicate check for PyLong_Check(). It was checked above.
This commit is contained in:
parent
bf6f0aa837
commit
c1fc34a56c
1 changed files with 0 additions and 3 deletions
|
|
@ -450,9 +450,6 @@ math_ldexp(PyObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (PyLong_Check(oexp)) {
|
|
||||||
exp = PyLong_AS_LONG(oexp);
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"Expected an int or long as second argument "
|
"Expected an int or long as second argument "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue