summaryrefslogtreecommitdiff
path: root/Objects/intobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/intobject.c')
-rw-r--r--Objects/intobject.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index bdf7da364f..f52ef07e22 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -948,12 +948,6 @@ int_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (tmp == NULL)
return NULL;
if (!PyInt_Check(tmp)) {
- if (!PyLong_Check(tmp)) {
- PyErr_SetString(PyExc_ValueError,
- "value can't be converted to int");
- Py_DECREF(tmp);
- return NULL;
- }
ival = PyLong_AsLong(tmp);
if (ival == -1 && PyErr_Occurred()) {
Py_DECREF(tmp);