]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #9803: Don't close IDLE on saving if breakpoint is open.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Tue, 31 Jul 2012 16:51:27 +0000 (19:51 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Tue, 31 Jul 2012 16:51:27 +0000 (19:51 +0300)
Patch by Roger Serwy.

Lib/idlelib/PyShell.py
Misc/NEWS

index 25eec899b30257cd68577d533598fad68df9bedb..d6f3ce3f64b81c7e0d5ce2f7b9ef9cecaf2f26bd 100644 (file)
@@ -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
index 08b632b1a69adb98d8da3b33113d90cc00ed40ff..847089daf8736bda5dadc3fa626a42b47c579880 100644 (file)
--- 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.