diff Lib/idlelib/PyShell.py @ 78349:28c935ded243

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:49:38 +0300
parents 1da53d86d722 47536beb7453
children 3f3b72ab9d65 0430986a8c03
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Tue Jul 31 17:25:33 2012 +0300
+++ b/Lib/idlelib/PyShell.py	Tue Jul 31 19:49:38 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