summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRoger Serwy <roger.serwy@gmail.com>2013-03-31 20:53:08 (GMT)
committerRoger Serwy <roger.serwy@gmail.com>2013-03-31 20:53:08 (GMT)
commitcadd7864d88239d7ed58611b28e8dc48ff70b49c (patch)
treef915d5eff1ea5e8a3bc40a49ebb481bc8c83d1f7 /Lib
parente4059462f2c5ad0259fae54208b79043a395b085 (diff)
downloadcpython-cadd7864d88239d7ed58611b28e8dc48ff70b49c.zip
cpython-cadd7864d88239d7ed58611b28e8dc48ff70b49c.tar.gz
cpython-cadd7864d88239d7ed58611b28e8dc48ff70b49c.tar.bz2
#8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception.
Diffstat (limited to 'Lib')
-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 b81c5ed..b032a65 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