mirror of
https://github.com/python/cpython.git
synced 2025-09-23 17:03:23 +00:00
vgetargskeywords(): remove test that can't succeed. Not a bugfix, just
removing useless obfuscation.
This commit is contained in:
parent
9fda73cdd1
commit
f4331c1c38
1 changed files with 7 additions and 13 deletions
|
@ -1069,22 +1069,16 @@ vgetargskeywords(PyObject *args, PyObject *keywords, char *format,
|
||||||
|
|
||||||
/* do a cursory check of the keywords just to see how many we got */
|
/* do a cursory check of the keywords just to see how many we got */
|
||||||
|
|
||||||
|
kwlen = 0;
|
||||||
if (keywords) {
|
if (keywords) {
|
||||||
if (!PyDict_Check(keywords)) {
|
if (!PyDict_Check(keywords)) {
|
||||||
if (keywords == NULL)
|
PyErr_Format(PyExc_SystemError,
|
||||||
PyErr_SetString(PyExc_SystemError,
|
"%s received when keyword dictionary expected",
|
||||||
"NULL received when keyword dictionary expected");
|
keywords->ob_type->tp_name);
|
||||||
else
|
|
||||||
PyErr_Format(PyExc_SystemError,
|
|
||||||
"%s received when keyword dictionary expected",
|
|
||||||
keywords->ob_type->tp_name);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
kwlen = PyDict_Size(keywords);
|
kwlen = PyDict_Size(keywords);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
kwlen = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* make sure there are no duplicate values for an argument;
|
/* make sure there are no duplicate values for an argument;
|
||||||
its not clear when to use the term "keyword argument vs.
|
its not clear when to use the term "keyword argument vs.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue