summaryrefslogtreecommitdiffstats
path: root/Objects/complexobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r--Objects/complexobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index da47f81..8e1f4d7 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -349,10 +349,6 @@ to_complex(PyObject **pobj, Py_complex *pc)
PyObject *obj = *pobj;
pc->real = pc->imag = 0.0;
- if (PyInt_Check(obj)) {
- pc->real = PyInt_AS_LONG(obj);
- return 0;
- }
if (PyLong_Check(obj)) {
pc->real = PyLong_AsDouble(obj);
if (pc->real == -1.0 && PyErr_Occurred()) {