[pypy-svn] pypy default: fix thinko in _abstract_method_error's error message
pjenvey
commits-noreply at bitbucket.org
Fri Mar 18 22:06:19 CET 2011
Author: Philip Jenvey <pjenvey at underboss.org>
Branch:
Changeset: r42797:362d11da6174
Date: 2011-03-18 13:51 -0700
http://bitbucket.org/pypy/pypy/changeset/362d11da6174/
Log: fix thinko in _abstract_method_error's error message
diff --git a/pypy/objspace/std/objecttype.py b/pypy/objspace/std/objecttype.py
--- a/pypy/objspace/std/objecttype.py
+++ b/pypy/objspace/std/objecttype.py
@@ -53,7 +53,7 @@
def _abstract_method_error(typ):
methods = ", ".join(sorted(typ.__abstractmethods__))
err = "Can't instantiate abstract class %s with abstract methods %s"
- raise TypeError(err % (methods, typ.__name__))
+ raise TypeError(err % (typ.__name__, methods))
""")
_abstract_method_error = app.interphook("_abstract_method_error")
More information about the Pypy-commit
mailing list