diff Lib/idlelib/PyShell.py @ 78348:47536beb7453 3.2

Issue #9803: Don't close IDLE on saving if breakpoint is open. Patch by Roger Serwy.
author Andrew Svetlov <andrew.svetlov@gmail.com>
date Tue, 31 Jul 2012 19:48:00 +0300
parents f72965374b2a
children 66643fcf6ee9 28c935ded243
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Mon Jul 30 19:59:53 2012 +0300
+++ b/Lib/idlelib/PyShell.py	Tue Jul 31 19:48:00 2012 +0300
@@ -248,8 +248,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