[pypy-commit] pypy default: Blindly copy a CPython change:

amauryfa noreply at buildbot.pypy.org
Sat Jun 13 01:47:01 CEST 2015


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
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)


More information about the pypy-commit mailing list