Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r92222:d459f7e19937
Date: 2017-08-23 16:48 +0200
http://bitbucket.org/pypy/pypy/changeset/d459f7e19937/
Log: Fix error message
diff --git a/pypy/objspace/std/objectobject.py
b/pypy/objspace/std/objectobject.py
--- a/pypy/objspace/std/objectobject.py
+++ b/pypy/objspace/std/objectobject.py
@@ -143,7 +143,7 @@
from pypy.objspace.std.typeobject import W_TypeObject
if not isinstance(w_newcls, W_TypeObject):
raise oefmt(space.w_TypeError,
- "__class__ must be set to new-style class, not '%T' "
+ "__class__ must be set to a class, not '%T' "
"object", w_newcls)
if not w_newcls.is_heaptype():
raise oefmt(space.w_TypeError,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit