diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2003-07-09 04:27:24 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2003-07-09 04:27:24 (GMT) |
commit | bea57c6c355ba98cd9019d13e5adf7d715377edf (patch) | |
tree | 2bf08ff58a43ac8c3b959978b1675ebbb2ac31c4 | |
parent | bd2de3a65b9a8307939ee5c100c02f4644891e76 (diff) | |
download | cpython-bea57c6c355ba98cd9019d13e5adf7d715377edf.zip cpython-bea57c6c355ba98cd9019d13e5adf7d715377edf.tar.gz cpython-bea57c6c355ba98cd9019d13e5adf7d715377edf.tar.bz2 |
SF Bug 767794
"Break or continue outside loop causes crash"
-rw-r--r-- | Lib/idlelib/PyShell.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 83f2de8..48b912d 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -605,6 +605,8 @@ class ModifiedInterpreter(InteractiveInterpreter): if ok: try: msg, (dummy_filename, lineno, offset, line) = value + if not offset: + offset = 0 except: ok = 0 if ok: |