[pypy-svn] r47970 - pypy/dist/pypy/lang/smalltalk
arigo at codespeak.net
arigo at codespeak.net
Thu Oct 25 19:36:16 CEST 2007
Author: arigo
Date: Thu Oct 25 19:36:16 2007
New Revision: 47970
Modified:
pypy/dist/pypy/lang/smalltalk/shadow.py
Log:
Avoid repr'ing as "<ClassShadow None>".
Modified: pypy/dist/pypy/lang/smalltalk/shadow.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/shadow.py (original)
+++ pypy/dist/pypy/lang/smalltalk/shadow.py Thu Oct 25 19:36:16 2007
@@ -163,7 +163,7 @@
# Methods for querying the format word, taken from the blue book:
def __repr__(self):
- return "<ClassShadow %s>" % (self.name,)
+ return "<ClassShadow %s>" % (self.name or '?',)
def lookup(self, selector):
if selector in self.methoddict:
More information about the Pypy-commit
mailing list