mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Fix outdated comment in typeobject.c (GH-5090)
The comment was added in3abca127fe
. Ind78448e912
, it was changed to use PyArg_ParseTuple instead.
This commit is contained in:
parent
d8ac4d1d5a
commit
78e24d4415
@ -2372,7 +2372,7 @@ type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds)
|
||||
}
|
||||
|
||||
/* SF bug 475327 -- if that didn't trigger, we need 3
|
||||
arguments. but PyArg_ParseTupleAndKeywords below may give
|
||||
arguments. but PyArg_ParseTuple below may give
|
||||
a msg saying type() needs exactly 3. */
|
||||
if (nargs != 3) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
|
Loading…
Reference in New Issue
Block a user