mirror of
https://github.com/python/cpython.git
synced 2024-11-30 21:34:17 +08:00
Issue #9803: Don't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
This commit is contained in:
parent
1fb0e3f3a2
commit
06c5c6d694
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user