changeset: 78350:8f1a8e80f330 branch: 2.7 parent: 78337:f98e2944cb40 user: Andrew Svetlov date: Tue Jul 31 19:51:27 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 f98e2944cb40 -r 8f1a8e80f330 Lib/idlelib/PyShell.py --- a/Lib/idlelib/PyShell.py Mon Jul 30 20:04:53 2012 +0300 +++ b/Lib/idlelib/PyShell.py Tue Jul 31 19:51:27 2012 +0300 @@ -252,8 +252,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 f98e2944cb40 -r 8f1a8e80f330 Misc/NEWS --- a/Misc/NEWS Mon Jul 30 20:04:53 2012 +0300 +++ b/Misc/NEWS Tue Jul 31 19:51:27 2012 +0300 @@ -92,6 +92,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 によって変換されたページ (->オリジナル) /