summaryrefslogtreecommitdiffstats
path: root/Objects/clinic/tupleobject.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/clinic/tupleobject.c.h')
-rw-r--r--Objects/clinic/tupleobject.c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/clinic/tupleobject.c.h b/Objects/clinic/tupleobject.c.h
index a4776e1..3de9575 100644
--- a/Objects/clinic/tupleobject.c.h
+++ b/Objects/clinic/tupleobject.c.h
@@ -81,10 +81,10 @@ static PyObject *
tuple_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
+ PyTypeObject *base_tp = &PyTuple_Type;
PyObject *iterable = NULL;
- if ((type == &PyTuple_Type ||
- type->tp_init == PyTuple_Type.tp_init) &&
+ if ((type == base_tp || type->tp_init == base_tp->tp_init) &&
!_PyArg_NoKeywords("tuple", kwargs)) {
goto exit;
}
@@ -118,4 +118,4 @@ tuple___getnewargs__(PyTupleObject *self, PyObject *Py_UNUSED(ignored))
{
return tuple___getnewargs___impl(self);
}
-/*[clinic end generated code: output=441d2b880e865f87 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=48a9e0834b300ac3 input=a9049054013a1b77]*/