From 420e2d8e39633448d40a25413bce55f6be482d6b Mon Sep 17 00:00:00 2001 From: Roger Serwy Date: Sun, 31 Mar 2013 15:53:08 -0500 Subject: [PATCH] #8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception. --- Lib/idlelib/MultiCall.py | 5 +++-- Misc/NEWS | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py index 47f402d3261..64729eab8ca 100644 --- a/Lib/idlelib/MultiCall.py +++ b/Lib/idlelib/MultiCall.py @@ -170,8 +170,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 d1ba2dbb4c7..a3fe827546c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -15,6 +15,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 #17435: threading.Timer's __init__ method no longer uses mutable