[pypy-svn] r74566 - pypy/trunk/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Wed May 19 10:09:31 CEST 2010


Author: afa
Date: Wed May 19 10:09:29 2010
New Revision: 74566

Modified:
   pypy/trunk/pypy/module/cpyext/pyobject.py
Log:
Fix translation


Modified: pypy/trunk/pypy/module/cpyext/pyobject.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/pyobject.py	(original)
+++ pypy/trunk/pypy/module/cpyext/pyobject.py	Wed May 19 10:09:29 2010
@@ -163,7 +163,8 @@
         self.non_heaptypes_w = []
 
     def _freeze_(self):
-        assert not self.borrowed_objects and not self.borrow_mapping
+        assert not self.borrowed_objects
+        assert self.borrow_mapping == {None: {}}
         self.py_objects_r2w.clear() # is not valid anymore after translation
         return False
 



More information about the Pypy-commit mailing list