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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bea57c6c355ba98cd9019d13e5adf7d715377edf;p=thirdparty%2FPython%2Fcpython.git SF Bug 767794 "Break or continue outside loop causes crash" --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 83f2de8b9af9..48b912d153da 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: