[Python-checkins] cpython (3.2): Issue #9803: Don't close IDLE on saving if breakpoint is open.
andrew.svetlov
python-checkins at python.org
Tue Jul 31 18:52:49 CEST 2012
http://hg.python.org/cpython/rev/47536beb7453
changeset: 78348:47536beb7453
branch: 3.2
parent: 78335:fd5166fdb978
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Tue Jul 31 19:48:00 2012 +0300
summary:
Issue #9803: Don't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
files:
Lib/idlelib/PyShell.py | 4 ++--
Misc/NEWS | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -248,8 +248,8 @@
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
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -98,6 +98,9 @@
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
for tkinter SimpleDialog.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list