[pypy-svn] r74388 - pypy/branch/chunked-list/pypy/translator

fijal at codespeak.net fijal at codespeak.net
Wed May 5 21:44:09 CEST 2010


Author: fijal
Date: Wed May  5 21:44:07 2010
New Revision: 74388

Modified:
   pypy/branch/chunked-list/pypy/translator/simplify.py
Log:
Don't append _idx_idx_idx


Modified: pypy/branch/chunked-list/pypy/translator/simplify.py
==============================================================================
--- pypy/branch/chunked-list/pypy/translator/simplify.py	(original)
+++ pypy/branch/chunked-list/pypy/translator/simplify.py	Wed May  5 21:44:07 2010
@@ -227,10 +227,9 @@
         if block.operations and block.exitswitch == c_last_exception:
             last_op = block.operations[-1]
             if last_op.opname == 'getitem':
-                postfx = []
+                postfx = ['idx']
                 for exit in block.exits:
                     #if exit.exitcase is IndexError:
-                    postfx.append('idx')
                     if exit.exitcase is KeyError:
                         postfx.append('key')
                 if postfx:



More information about the Pypy-commit mailing list