[pypy-svn] r27199 - pypy/dist/pypy/translator/pickle
tismer at codespeak.net
tismer at codespeak.net
Sun May 14 13:19:33 CEST 2006
Author: tismer
Date: Sun May 14 13:19:32 2006
New Revision: 27199
Modified:
pypy/dist/pypy/translator/pickle/genpickle.py
Log:
revive genpickle a little bit by at least adapting to the new translationcontext
Modified: pypy/dist/pypy/translator/pickle/genpickle.py
==============================================================================
--- pypy/dist/pypy/translator/pickle/genpickle.py (original)
+++ pypy/dist/pypy/translator/pickle/genpickle.py Sun May 14 13:19:32 2006
@@ -372,14 +372,14 @@
#raise Exception, "unexpected name %r in class %s"%(key, cls)
if isapp:
if (isinstance(value, staticmethod) and value.__get__(1) not in
- self.translator.flowgraphs and self.translator.frozen):
+ self.translator.flowgraphs and self.translator.annotator.frozen):
continue
if isinstance(value, classmethod):
doc = value.__get__(cls).__doc__
if doc and doc.lstrip().startswith("NOT_RPYTHON"):
continue
if (isinstance(value, FunctionType) and value not in
- self.translator.flowgraphs and self.translator.frozen):
+ self.translator.flowgraphs and self.translator.annotator.frozen):
continue
if key in ignore:
continue
@@ -685,7 +685,7 @@
def nameof_function(self, func):
# look for skipped functions
- if self.translator.frozen:
+ if self.translator.annotator.frozen:
if func not in self.translator.flowgraphs:
# see if this is in translator's domain
module = whichmodule(func, func.__name__)
More information about the Pypy-commit
mailing list