From 06c5c6d694481a3c1e09420756f8ad6ca1762d0f Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Tue, 31 Jul 2012 19:48:00 +0300 Subject: [PATCH] Issue #9803: Don't close IDLE on saving if breakpoint is open. Patch by Roger Serwy. --- Lib/idlelib/PyShell.py | 4 ++-- Misc/NEWS | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 0eae7c5cee..88c0390ba5 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 diff --git a/Misc/NEWS b/Misc/NEWS index 454a70cc17..9a5aff4108 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -98,6 +98,9 @@ Core and Builtins Library ------- +- Issue #9803: Don't close IDLE on saving if breakpoint is open. + Patch by Roger Serwy. + - Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog. -- 2.40.0