summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 1a82b1c67a..bec0a78008 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -4283,11 +4283,6 @@ long_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
}
if (obase == NULL)
return PyNumber_Long(x);
- if (!PyLong_Check(obase)) {
- PyErr_SetString(PyExc_TypeError,
- "int() base must be an integer.");
- return NULL;
- }
base = PyNumber_AsSsize_t(obase, NULL);
if (base == -1 && PyErr_Occurred())