#8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception.

This commit is contained in:
Roger Serwy 2013-03-31 15:53:08 -05:00
parent 7a03e2d377
commit 420e2d8e39
2 changed files with 6 additions and 2 deletions

View file

@ -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