From: Roger Serwy Date: Sun, 31 Mar 2013 20:53:08 +0000 (-0500) Subject: #8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception. X-Git-Tag: v2.7.5~119 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cadd7864d88239d7ed58611b28e8dc48ff70b49c;p=thirdparty%2FPython%2Fcpython.git #8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception. --- diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py index b81c5ed7d042..b032a653d3f4 100644 --- a/Lib/idlelib/MultiCall.py +++ b/Lib/idlelib/MultiCall.py @@ -171,8 +171,9 @@ class _ComplexBinder: 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 --git a/Misc/NEWS b/Misc/NEWS index 59ec000c700b..29784ffa9e47 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,9 @@ Core and Builtins 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