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

pedronis at codespeak.net pedronis at codespeak.net
Tue Sep 5 18:42:39 CEST 2006

Author: pedronis
Date: Tue Sep  5 18:42:38 2006
New Revision: 32019

(arre, pedronis)

oops, should have gone with the previous checking about adding a extra_passes arg to annotator.simplify.

Modified: pypy/dist/pypy/translator/transform.py
--- pypy/dist/pypy/translator/transform.py	(original)
+++ pypy/dist/pypy/translator/transform.py	Tue Sep  5 18:42:38 2006
@@ -218,10 +218,12 @@
-def transform_graph(ann, extra_passes=default_extra_passes, block_subset=None):
+def transform_graph(ann, extra_passes=None, block_subset=None):
     """Apply set of transformations available."""
     # WARNING: this produces incorrect results if the graph has been
     #          modified by t.simplify() after it had been annotated.
+    if extra_passes is None:
+        extra_passes = default_extra_passes
     if block_subset is None:
         block_subset = fully_annotated_blocks(ann)
     if not isinstance(block_subset, dict):

More information about the Pypy-commit mailing list