mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
SF Bug 767794
"Break or continue outside loop causes crash"
This commit is contained in:
parent
bd2de3a65b
commit
bea57c6c35
1 changed files with 2 additions and 0 deletions
|
@ -605,6 +605,8 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
||||||
if ok:
|
if ok:
|
||||||
try:
|
try:
|
||||||
msg, (dummy_filename, lineno, offset, line) = value
|
msg, (dummy_filename, lineno, offset, line) = value
|
||||||
|
if not offset:
|
||||||
|
offset = 0
|
||||||
except:
|
except:
|
||||||
ok = 0
|
ok = 0
|
||||||
if ok:
|
if ok:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue