summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-31 16:51:27 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-31 16:51:27 (GMT)
commit8a15c37df7415189f6e9291df074fba68b68df43 (patch)
treea33648c302713e6b58fed8e172375016fd2ed69c /Lib/idlelib
parent2d96848c7e6a13423a8efe69f1539d8f6a7755a4 (diff)
downloadcpython-8a15c37df7415189f6e9291df074fba68b68df43.zip
cpython-8a15c37df7415189f6e9291df074fba68b68df43.tar.gz
cpython-8a15c37df7415189f6e9291df074fba68b68df43.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 25eec89..d6f3ce3 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -252,8 +252,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