changeset: 78348:47536beb7453 branch: 3.2 parent: 78335:fd5166fdb978 user: Andrew Svetlov date: Tue Jul 31 19:48:00 2012 +0300 files: Lib/idlelib/PyShell.py Misc/NEWS description: Issue #9803: Don't close IDLE on saving if breakpoint is open. Patch by Roger Serwy. diff -r fd5166fdb978 -r 47536beb7453 Lib/idlelib/PyShell.py --- a/Lib/idlelib/PyShell.py Mon Jul 30 19:59:53 2012 +0300 +++ b/Lib/idlelib/PyShell.py Tue Jul 31 19:48:00 2012 +0300 @@ -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 -r fd5166fdb978 -r 47536beb7453 Misc/NEWS --- a/Misc/NEWS Mon Jul 30 19:59:53 2012 +0300 +++ b/Misc/NEWS Tue Jul 31 19:48:00 2012 +0300 @@ -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.

AltStyle によって変換されたページ (->オリジナル) /