Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 82262:0082b7bf9501 2.7
#7963: fix error message when 'object' called with arguments.
Patch by Alexander Belopolsky.
| author | R David Murray <rdmurray@bitdance.com> |
|---|---|
| date | Mon, 18 Feb 2013 22:04:59 -0500 |
| parents | bfe38710d4e6 |
| children | eaff15532b3c |
line wrap: on
line diff
--- a/Objects/typeobject.c Mon Feb 18 13:32:06 2013 +0200 +++ b/Objects/typeobject.c Mon Feb 18 22:04:59 2013 -0500 @@ -2897,14 +2897,14 @@ type->tp_init != object_init) { err = PyErr_WarnEx(PyExc_DeprecationWarning, - "object.__new__() takes no parameters", + "object() takes no parameters", 1); } else if (type->tp_new != object_new || type->tp_init == object_init) { PyErr_SetString(PyExc_TypeError, - "object.__new__() takes no parameters"); + "object() takes no parameters"); err = -1; } }
