Fix outdated comment in typeobject.c (GH-5090)

The comment was added in 3abca127fe.
In d78448e912, it was changed to
use PyArg_ParseTuple instead.

(cherry picked from commit 78e24d4415)
This commit is contained in:
Miss Islington (bot) 2018-01-04 03:06:47 -08:00 committed by Berker Peksag
parent a70d5ff992
commit 78e43a59ac

View file

@ -2313,7 +2313,7 @@ type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds)
} }
/* SF bug 475327 -- if that didn't trigger, we need 3 /* 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. */ a msg saying type() needs exactly 3. */
if (nargs != 3) { if (nargs != 3) {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,