[pypy-svn] r71382 - pypy/trunk/pypy/objspace/std

fijal at codespeak.net fijal at codespeak.net
Sun Feb 21 15:56:02 CET 2010


Author: fijal
Date: Sun Feb 21 15:56:00 2010
New Revision: 71382

Modified:
   pypy/trunk/pypy/objspace/std/typetype.py
Log:
Fix translation


Modified: pypy/trunk/pypy/objspace/std/typetype.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/typetype.py	(original)
+++ pypy/trunk/pypy/objspace/std/typetype.py	Sun Feb 21 15:56:00 2010
@@ -164,7 +164,8 @@
         # Disable method cache if the hierarchy isn't pure.
         w_type._version_tag = None
         for w_subclass in w_type.get_subclasses():
-            w_subclass._version_tag = None
+            if isinstance(w_type, W_TypeObject):
+                w_subclass._version_tag = None
     assert w_type.w_same_layout_as is get_parent_layout(w_type)  # invariant
 
 def descr__base(space, w_type):



More information about the Pypy-commit mailing list