]> granicus.if.org Git - python/commitdiff
Fix outdated comment in typeobject.c (GH-5090)
authorBerker Peksag <berker.peksag@gmail.com>
Thu, 4 Jan 2018 10:24:45 +0000 (13:24 +0300)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2018 10:24:45 +0000 (13:24 +0300)
The comment was added in 3abca127fe1565ec80f6b0a1ae48d65186ad887d.
In d78448e912126410117723c7d240bbdfff06df16, it was changed to
use PyArg_ParseTuple instead.

Objects/typeobject.c

index 40c8fadc52ea9443a7bb5d07e3ef575983c25cbf..e570c4145dfd89e25a395934b6906c393dc41068 100644 (file)
@@ -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,