Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r78070:044b6da79c49
Date: 2015-06-13 01:45 +0200
http://bitbucket.org/pypy/pypy/changeset/044b6da79c49/

Log:    Blindly copy a CPython change: Issue #23048: Fix jumping out of an
        infinite while loop in the pdb.

        it crashed the test suite.

diff --git a/pypy/interpreter/astcompiler/codegen.py 
b/pypy/interpreter/astcompiler/codegen.py
--- a/pypy/interpreter/astcompiler/codegen.py
+++ b/pypy/interpreter/astcompiler/codegen.py
@@ -527,7 +527,7 @@
             self.emit_jump(ops.JUMP_ABSOLUTE, loop, True)
             if test_constant == optimize.CONST_NOT_CONST:
                 self.use_next_block(anchor)
-                self.emit_op(ops.POP_BLOCK)
+            self.emit_op(ops.POP_BLOCK)
             self.pop_frame_block(F_BLOCK_LOOP, loop)
             self.visit_sequence(wh.orelse)
             self.use_next_block(end)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to