[pypy-svn] r57646 - pypy/branch/typeobject-init/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Wed Aug 27 15:19:00 CEST 2008
Author: arigo
Date: Wed Aug 27 15:18:58 2008
New Revision: 57646
Modified:
pypy/branch/typeobject-init/pypy/objspace/std/typetype.py
Log:
Minor cleanup.
Modified: pypy/branch/typeobject-init/pypy/objspace/std/typetype.py
==============================================================================
--- pypy/branch/typeobject-init/pypy/objspace/std/typetype.py (original)
+++ pypy/branch/typeobject-init/pypy/objspace/std/typetype.py Wed Aug 27 15:18:58 2008
@@ -108,7 +108,7 @@
if not w_type.is_heaptype():
raise OperationError(space.w_TypeError,
space.wrap("can't set %s.__bases__" %
- w_type.name))
+ (w_type.name,)))
if not space.is_true(space.isinstance(w_value, space.w_tuple)):
raise OperationError(space.w_TypeError,
space.wrap("can only assign tuple"
@@ -120,7 +120,7 @@
raise OperationError(space.w_TypeError,
space.wrap("can only assign non-empty tuple"
" to %s.__bases__, not ()"%
- w_type.name))
+ (w_type.name,)))
for w_newbase in newbases_w:
if isinstance(w_newbase, W_TypeObject):
More information about the Pypy-commit
mailing list