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

Lib/idlelib/PyShell.py
Misc/NEWS

index 0eae7c5cee38876a86af8e84c8cb48186e272437..88c0390ba59920e0886c597d30b6ede6e66e65cc 100644 (file)
@@ -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
index 454a70cc1733c472c0ac3fd2c7eded73dbe43fa5..9a5aff4108d5ba2011d08fde43696ee291c14ce5 100644 (file)
--- 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.