summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-01-04 11:06:47 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2018-01-04 11:06:47 (GMT)
commit78e43a59acd2c5c2325e52f37ddd59d2079391ee (patch)
tree9cc8fa9297b1291442d4fcc48f68f67fc53347a7
parenta70d5ff992e5e123a3fa6f0e7f672026db8ed1f7 (diff)
downloadcpython-78e43a59acd2c5c2325e52f37ddd59d2079391ee.zip
cpython-78e43a59acd2c5c2325e52f37ddd59d2079391ee.tar.gz
cpython-78e43a59acd2c5c2325e52f37ddd59d2079391ee.tar.bz2
Fix outdated comment in typeobject.c (GH-5090)
The comment was added in 3abca127fe1565ec80f6b0a1ae48d65186ad887d. In d78448e912126410117723c7d240bbdfff06df16, it was changed to use PyArg_ParseTuple instead. (cherry picked from commit 78e24d4415c37e9e9951920bc31e9ee4868d86cb)
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index cb5e235..5a231c81 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -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,