From: Kurt B. Kaiser Date: Wed, 9 Jul 2003 04:27:24 +0000 (+0000) Subject: SF Bug 767794 X-Git-Tag: v2.3c1~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bea57c6c355ba98cd9019d13e5adf7d715377edf;p=python SF Bug 767794 "Break or continue outside loop causes crash" --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 83f2de8b9a..48b912d153 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: