[Python-checkins] cpython (2.7): Issue #9803: Don't close IDLE on saving if breakpoint is open.

andrew.svetlov python-checkins at python.org
Tue Jul 31 18:52:53 CEST 2012


http://hg.python.org/cpython/rev/8f1a8e80f330
changeset:   78350:8f1a8e80f330
branch:      2.7
parent:      78337:f98e2944cb40
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Tue Jul 31 19:51:27 2012 +0300
summary:
  Issue #9803: Don't close IDLE on saving if breakpoint is open.

Patch by Roger Serwy.

files:
  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
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -252,8 +252,8 @@
     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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,9 @@
 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.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list