summaryrefslogtreecommitdiff
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorRoger Serwy <roger.serwy@gmail.com>2013-03-31 15:53:08 -0500
committerRoger Serwy <roger.serwy@gmail.com>2013-03-31 15:53:08 -0500
commitcadd7864d88239d7ed58611b28e8dc48ff70b49c (patch)
treef915d5eff1ea5e8a3bc40a49ebb481bc8c83d1f7 /Lib/idlelib
parente4059462f2c5ad0259fae54208b79043a395b085 (diff)
downloadcpython-git-cadd7864d88239d7ed58611b28e8dc48ff70b49c.tar.gz
#8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/MultiCall.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py
index b81c5ed7d0..b032a653d3 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