diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-02-19 02:39:18 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-02-19 02:39:18 (GMT) |
commit | 702a5dc1ed7907c4017106388329db73c038345c (patch) | |
tree | aa552d8155b0598347dbf506b1225b14217d51ce /Objects | |
parent | 41d4ebbf43f78d390d33420bbbbfd0cb78be4e76 (diff) | |
parent | 6b30759022d836099a0844983816edaa5e64f52f (diff) | |
download | cpython-702a5dc1ed7907c4017106388329db73c038345c.zip cpython-702a5dc1ed7907c4017106388329db73c038345c.tar.gz cpython-702a5dc1ed7907c4017106388329db73c038345c.tar.bz2 |
#7963: fix error message when 'object' called with arguments.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 413c7da..aab83e1 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -3059,7 +3059,7 @@ object_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { if (excess_args(args, kwds) && (type->tp_init == object_init || type->tp_new != object_new)) { - PyErr_SetString(PyExc_TypeError, "object.__new__() takes no parameters"); + PyErr_SetString(PyExc_TypeError, "object() takes no parameters"); return NULL; } |