From: Andrew Svetlov Date: Tue, 31 Jul 2012 16:51:27 +0000 (+0300) Subject: Issue #9803: Don't close IDLE on saving if breakpoint is open. X-Git-Tag: v2.7.4rc1~674 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a15c37df7415189f6e9291df074fba68b68df43;p=thirdparty%2FPython%2Fcpython.git Issue #9803: Don't close IDLE on saving if breakpoint is open. Patch by Roger Serwy. --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 25eec899b302..d6f3ce3f64b8 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -252,8 +252,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 08b632b1a69a..847089daf873 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -92,6 +92,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.