]> granicus.if.org Git - python/commitdiff
Fix outdated comment in typeobject.c (GH-5090)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 4 Jan 2018 11:06:47 +0000 (03:06 -0800)
committerBerker Peksag <berker.peksag@gmail.com>
Thu, 4 Jan 2018 11:06:47 +0000 (14:06 +0300)
The comment was added in 3abca127fe1565ec80f6b0a1ae48d65186ad887d.
In d78448e912126410117723c7d240bbdfff06df16, it was changed to
use PyArg_ParseTuple instead.

(cherry picked from commit 78e24d4415c37e9e9951920bc31e9ee4868d86cb)

Objects/typeobject.c

index cb5e235628dd74007ca24adcbc6f3b095423f852..5a231c81d4e909d832d4941666221c5ad713f897 100644 (file)
@@ -2313,7 +2313,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,