summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/md5module.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/clinic/md5module.c.h')
-rw-r--r--Modules/clinic/md5module.c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/clinic/md5module.c.h b/Modules/clinic/md5module.c.h
index 7d4d310..ee7fb3d 100644
--- a/Modules/clinic/md5module.c.h
+++ b/Modules/clinic/md5module.c.h
@@ -23,7 +23,7 @@ MD5Type_copy_impl(MD5object *self, PyTypeObject *cls);
static PyObject *
MD5Type_copy(MD5object *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
{
- if (nargs) {
+ if (nargs || (kwnames && PyTuple_GET_SIZE(kwnames))) {
PyErr_SetString(PyExc_TypeError, "copy() takes no arguments");
return NULL;
}
@@ -148,4 +148,4 @@ skip_optional_kwonly:
exit:
return return_value;
}
-/*[clinic end generated code: output=bfadda44914804a8 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=4dbca39332d3f52f input=a9049054013a1b77]*/