[pypy-svn] r13272 - pypy/dist/pypy/translator

tismer at codespeak.net tismer at codespeak.net
Fri Jun 10 16:57:25 CEST 2005


Author: tismer
Date: Fri Jun 10 16:57:23 2005
New Revision: 13272

Modified:
   pypy/dist/pypy/translator/annrpython.py
Log:
__gestate__ had a missing argument

Modified: pypy/dist/pypy/translator/annrpython.py
==============================================================================
--- pypy/dist/pypy/translator/annrpython.py	(original)
+++ pypy/dist/pypy/translator/annrpython.py	Fri Jun 10 16:57:23 2005
@@ -60,12 +60,13 @@
 
     def __getstate__(self):
         attrs = """translator pendingblocks bindings annotated links_followed
-        notify bookkeeper policy""".split()
+        notify bookkeeper frozen policy""".split()
         ret = self.__dict__.copy()
         for key, value in ret.items():
             if key not in attrs:
-                assert type(value) is dict, ("please update %s.__getstate__" %
-                                             self.__class__.__name__)
+                assert type(value) is dict, (
+                    "%r is not dict. please update %s.__getstate__" %
+                    (key, self.__class__.__name__))
                 ret[key] = {}
         return ret
 



More information about the Pypy-commit mailing list