summaryrefslogtreecommitdiffstats
path: root/Objects/complexobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r--Objects/complexobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index e0766de..9bd68d5 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -281,9 +281,8 @@ static PyObject *
try_complex_special_method(PyObject *op)
{
PyObject *f;
- _Py_IDENTIFIER(__complex__);
- f = _PyObject_LookupSpecial(op, &PyId___complex__);
+ f = _PyObject_LookupSpecial(op, &_Py_ID(__complex__));
if (f) {
PyObject *res = _PyObject_CallNoArgs(f);
Py_DECREF(f);