changeset: 78349:28c935ded243 parent: 78347:07ddf5ecaafa parent: 78348:47536beb7453 user: Andrew Svetlov date: Tue Jul 31 19:49:38 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 07ddf5ecaafa -r 28c935ded243 Lib/idlelib/PyShell.py --- a/Lib/idlelib/PyShell.py Tue Jul 31 17:25:33 2012 +0300 +++ b/Lib/idlelib/PyShell.py Tue Jul 31 19:49:38 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 07ddf5ecaafa -r 28c935ded243 Misc/NEWS --- a/Misc/NEWS Tue Jul 31 17:25:33 2012 +0300 +++ b/Misc/NEWS Tue Jul 31 19:49:38 2012 +0300 @@ -343,6 +343,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 によって変換されたページ (->オリジナル) /