[pypy-svn] r13084 - pypy/dist/pypy/translator
tismer at codespeak.net
tismer at codespeak.net
Sun Jun 5 23:13:07 CEST 2005
Author: tismer
Date: Sun Jun 5 23:13:06 2005
New Revision: 13084
Modified:
pypy/dist/pypy/translator/annrpython.py
Log:
avoid complicated imports of parts of the application
by cleaning the values of overrides beforepickling.
Modified: pypy/dist/pypy/translator/annrpython.py
==============================================================================
--- pypy/dist/pypy/translator/annrpython.py (original)
+++ pypy/dist/pypy/translator/annrpython.py Sun Jun 5 23:13:06 2005
@@ -53,6 +53,10 @@
assert type(value) is dict, ("please update %s.__getstate__" %
self.__class__.__name__)
ret[key] = {}
+ # special case: clean up the overrides which would trigger bad imports
+ overrides = ret['overrides'] = {}
+ for key in self.overrides:
+ overrides[key] = None
return ret
def _register_returnvar(self, flowgraph, func):
More information about the Pypy-commit
mailing list