changeset: 83044:37352a3ccd54 branch: 2.7 parent: 83040:cfd4cd15809e user: Roger Serwy date: Sun Mar 31 15:53:08 2013 -0500 files: Lib/idlelib/MultiCall.py Misc/NEWS description: #8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception. diff -r cfd4cd15809e -r 37352a3ccd54 Lib/idlelib/MultiCall.py --- a/Lib/idlelib/MultiCall.py Sun Mar 31 20:35:59 2013 +0200 +++ b/Lib/idlelib/MultiCall.py Sun Mar 31 15:53:08 2013 -0500 @@ -171,8 +171,9 @@ break ishandlerrunning[:] = [] # Call all functions in doafterhandler and remove them from list - while doafterhandler: - doafterhandler.pop()() + for f in doafterhandler: + f() + doafterhandler[:] = [] if r: return r return handler diff -r cfd4cd15809e -r 37352a3ccd54 Misc/NEWS --- a/Misc/NEWS Sun Mar 31 20:35:59 2013 +0200 +++ b/Misc/NEWS Sun Mar 31 15:53:08 2013 -0500 @@ -12,6 +12,9 @@ Library ------- +- Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer + raises an exception. + - Issue #6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo. - Issue #17526: fix an IndexError raised while passing code without filename to

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