summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-31 16:49:38 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-31 16:49:38 (GMT)
commit233f6845b3f3498d800b429c4e8d84abcb5726b7 (patch)
tree133ac3a8a68290a735434e78154909dfb692a73f /Lib/idlelib
parentdfd72bbc4d1d558712e359e062a051e27b50549d (diff)
parent06c5c6d694481a3c1e09420756f8ad6ca1762d0f (diff)
downloadcpython-233f6845b3f3498d800b429c4e8d84abcb5726b7.zip
cpython-233f6845b3f3498d800b429c4e8d84abcb5726b7.tar.gz
cpython-233f6845b3f3498d800b429c4e8d84abcb5726b7.tar.bz2
Issue #9803: Don't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/PyShell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index e0b8c29..50d6182 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -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