diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-07-31 16:48:00 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-07-31 16:48:00 (GMT) |
commit | 06c5c6d694481a3c1e09420756f8ad6ca1762d0f (patch) | |
tree | 46ea36d54f0ff9444d63119da04c30ad11ee5aba /Lib/idlelib | |
parent | 1fb0e3f3a2dde81f428ec0a8bcffffdb6f622292 (diff) | |
download | cpython-06c5c6d694481a3c1e09420756f8ad6ca1762d0f.zip cpython-06c5c6d694481a3c1e09420756f8ad6ca1762d0f.tar.gz cpython-06c5c6d694481a3c1e09420756f8ad6ca1762d0f.tar.bz2 |
Issue #9803: Don't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/PyShell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 0eae7c5..88c0390 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -248,8 +248,8 @@ class PyShellEditorWindow(EditorWindow): def ranges_to_linenumbers(self, ranges): lines = [] for index in range(0, len(ranges), 2): - lineno = int(float(ranges[index])) - end = int(float(ranges[index+1])) + lineno = int(float(ranges[index].string)) + end = int(float(ranges[index+1].string)) while lineno < end: lines.append(lineno) lineno += 1 |