mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #9803: Don't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
This commit is contained in:
commit
233f6845b3
2 changed files with 5 additions and 2 deletions
|
@ -248,8 +248,8 @@ class PyShellEditorWindow(EditorWindow):
|
||||||
def ranges_to_linenumbers(self, ranges):
|
def ranges_to_linenumbers(self, ranges):
|
||||||
lines = []
|
lines = []
|
||||||
for index in range(0, len(ranges), 2):
|
for index in range(0, len(ranges), 2):
|
||||||
lineno = int(float(ranges[index]))
|
lineno = int(float(ranges[index].string))
|
||||||
end = int(float(ranges[index+1]))
|
end = int(float(ranges[index+1].string))
|
||||||
while lineno < end:
|
while lineno < end:
|
||||||
lines.append(lineno)
|
lines.append(lineno)
|
||||||
lineno += 1
|
lineno += 1
|
||||||
|
|
|
@ -343,6 +343,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #9803: Don't close IDLE on saving if breakpoint is open.
|
||||||
|
Patch by Roger Serwy.
|
||||||
|
|
||||||
- Issue #12288: Consider '0' and '0.0' as valid initialvalue
|
- Issue #12288: Consider '0' and '0.0' as valid initialvalue
|
||||||
for tkinter SimpleDialog.
|
for tkinter SimpleDialog.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue