summaryrefslogtreecommitdiff
path: root/Objects/clinic/enumobject.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/clinic/enumobject.c.h')
-rw-r--r--Objects/clinic/enumobject.c.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/Objects/clinic/enumobject.c.h b/Objects/clinic/enumobject.c.h
index 0f05cf84cb..27da294219 100644
--- a/Objects/clinic/enumobject.c.h
+++ b/Objects/clinic/enumobject.c.h
@@ -58,14 +58,13 @@ reversed_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
!_PyArg_NoKeywords("reversed", kwargs)) {
goto exit;
}
- if (!PyArg_UnpackTuple(args, "reversed",
- 1, 1,
- &seq)) {
+ if (!_PyArg_CheckPositional("reversed", PyTuple_GET_SIZE(args), 1, 1)) {
goto exit;
}
+ seq = PyTuple_GET_ITEM(args, 0);
return_value = reversed_new_impl(type, seq);
exit:
return return_value;
}
-/*[clinic end generated code: output=9008c36999c57218 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=831cec3db0e987c9 input=a9049054013a1b77]*/