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

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Jul 31 16:41:12 CEST 2005


Author: cfbolz
Date: Sun Jul 31 16:41:11 2005
New Revision: 15475

Modified:
   pypy/dist/pypy/translator/simplify.py
Log:
removed debug prints

Modified: pypy/dist/pypy/translator/simplify.py
==============================================================================
--- pypy/dist/pypy/translator/simplify.py	(original)
+++ pypy/dist/pypy/translator/simplify.py	Sun Jul 31 16:41:11 2005
@@ -19,12 +19,9 @@
     def visit(link):
         if isinstance(link, Link):
             while not link.target.operations:
-                if len(link.target.exits) != 1:
-                    print link.target.exits
-                    print link.target.exitswitch
-                    print "###########################################"
-                    if link.target.exitswitch != Constant(last_exception):
-                        break
+                if (len(link.target.exits) != 1 and
+                    link.target.exitswitch != Constant(last_exception)):
+                    break
                 assert link.target is not link.prevblock, (
                     "the graph contains an empty infinite loop")
                 block1 = link.target



More information about the Pypy-commit mailing list