diff options
-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: |