summaryrefslogtreecommitdiff
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
parente4059462f2c5ad0259fae54208b79043a395b085 (diff)
downloadcpython-git-cadd7864d88239d7ed58611b28e8dc48ff70b49c.tar.gz
#8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception.
-rw-r--r--Lib/idlelib/MultiCall.py5
-rw-r--r--Misc/NEWS3
2 files changed, 6 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
diff --git a/Misc/NEWS b/Misc/NEWS
index 59ec000c70..29784ffa9e 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