diff options
Diffstat (limited to 'Objects/enumobject.c')
-rw-r--r-- | Objects/enumobject.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Objects/enumobject.c b/Objects/enumobject.c index 5fbecbf..17a6282 100644 --- a/Objects/enumobject.c +++ b/Objects/enumobject.c @@ -31,16 +31,12 @@ enum_new(PyTypeObject *type, PyObject *args, PyObject *kwds) Py_DECREF(en); return NULL; } - en->en_result = PyTuple_New(2); + en->en_result = PyTuple_Pack(2, Py_None, Py_None); if (en->en_result == NULL) { Py_DECREF(en->en_sit); Py_DECREF(en); return NULL; } - Py_INCREF(Py_None); - PyTuple_SET_ITEM(en->en_result, 0, Py_None); - Py_INCREF(Py_None); - PyTuple_SET_ITEM(en->en_result, 1, Py_None); return (PyObject *)en; } |