[pypy-svn] r17378 - pypy/dist/pypy/interpreter/astcompiler

ac at codespeak.net ac at codespeak.net
Thu Sep 8 17:53:28 CEST 2005


Author: ac
Date: Thu Sep  8 17:53:28 2005
New Revision: 17378

Modified:
   pypy/dist/pypy/interpreter/astcompiler/pyassem.py
Log:
Fix some typos.

Modified: pypy/dist/pypy/interpreter/astcompiler/pyassem.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/pyassem.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/pyassem.py	Thu Sep  8 17:53:28 2005
@@ -230,8 +230,9 @@
             # block list, so that they can be re-inserted.
             for b in chain:
                 for j in range(i + 1, len(blocks)):
-                    if blocks[i] == b:
-                        del blocks[i]
+                    if blocks[j] == b:
+                        del blocks[j]
+                        break
                 else:
                     assert False, "Can't find block"
                     



More information about the Pypy-commit mailing list