[pypy-svn] r73150 - pypy/trunk/pypy/objspace/std
benjamin at codespeak.net
benjamin at codespeak.net
Tue Mar 30 00:49:35 CEST 2010
Author: benjamin
Date: Tue Mar 30 00:49:33 2010
New Revision: 73150
Modified:
pypy/trunk/pypy/objspace/std/model.py
Log:
rewrap
Modified: pypy/trunk/pypy/objspace/std/model.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/model.py (original)
+++ pypy/trunk/pypy/objspace/std/model.py Tue Mar 30 00:49:33 2010
@@ -335,11 +335,7 @@
__slots__ = ()
def __repr__(self):
- s = '%s(%s)' % (
- self.__class__.__name__,
- #', '.join(['%s=%r' % keyvalue for keyvalue in self.__dict__.items()])
- getattr(self, 'name', '')
- )
+ s = '%s(%s)' % (self.__class__.__name__, getattr(self, 'name', '')))
w_cls = getattr(self, 'w__class__', None)
if w_cls is not None and w_cls is not self:
s += ' instance of %s' % self.w__class__
More information about the Pypy-commit
mailing list