[pypy-svn] r76874 - pypy/trunk/pypy/rlib

arigo at codespeak.net arigo at codespeak.net
Sun Sep 5 15:58:53 CEST 2010


Author: arigo
Date: Sun Sep  5 15:58:51 2010
New Revision: 76874

Modified:
   pypy/trunk/pypy/rlib/rweakref.py
Log:
Fix for an order dependency.


Modified: pypy/trunk/pypy/rlib/rweakref.py
==============================================================================
--- pypy/trunk/pypy/rlib/rweakref.py	(original)
+++ pypy/trunk/pypy/rlib/rweakref.py	Sun Sep  5 15:58:51 2010
@@ -78,7 +78,7 @@
         return self.__class__,
 
     def method_get(self, s_key):
-        assert isinstance(s_key, annmodel.SomeString)
+        assert annmodel.SomeString(can_be_None=True).contains(s_key)
         return annmodel.SomeInstance(self.valueclassdef, can_be_None=True)
 
     def method_set(self, s_key, s_value):



More information about the Pypy-commit mailing list