Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 233f684

Browse files
committed
Issue #9803: Don't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
2 parents dfd72bb + 06c5c6d commit 233f684

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Lib/idlelib/PyShell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def update_breakpoints(self):
248248
def ranges_to_linenumbers(self, ranges):
249249
lines = []
250250
for index in range(0, len(ranges), 2):
251-
lineno = int(float(ranges[index]))
252-
end = int(float(ranges[index+1]))
251+
lineno = int(float(ranges[index].string))
252+
end = int(float(ranges[index+1].string))
253253
while lineno < end:
254254
lines.append(lineno)
255255
lineno += 1

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ Core and Builtins
343343
Library
344344
-------
345345

346+
- Issue #9803: Don't close IDLE on saving if breakpoint is open.
347+
Patch by Roger Serwy.
348+
346349
- Issue #12288: Consider '0' and '0.0' as valid initialvalue
347350
for tkinter SimpleDialog.
348351

0 commit comments

Comments
 (0)