summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/MultiCall.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-02-10 21:46:28 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-02-10 21:46:28 (GMT)
commitb825a3937cc2445de598e47bbb310d2055ed993f (patch)
treebf24c5237d395bff99eb5e5349ade95257654509 /Lib/idlelib/MultiCall.py
parentd8413bab22bb230fee0e96b9ebe870a485572777 (diff)
downloadcpython-b825a3937cc2445de598e47bbb310d2055ed993f.zip
cpython-b825a3937cc2445de598e47bbb310d2055ed993f.tar.gz
cpython-b825a3937cc2445de598e47bbb310d2055ed993f.tar.bz2
Issue #20167: Add missing else: break in 3 places as noticed by Serhiy.
Diffstat (limited to 'Lib/idlelib/MultiCall.py')
-rw-r--r--Lib/idlelib/MultiCall.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py
index 477db2e..25105dc 100644
--- a/Lib/idlelib/MultiCall.py
+++ b/Lib/idlelib/MultiCall.py
@@ -111,6 +111,8 @@ class _SimpleBinder:
except tkinter.TclError as e:
if e.args[0] == APPLICATION_GONE:
pass
+ else:
+ raise
# An int in range(1 << len(_modifiers)) represents a combination of modifiers
# (if the least significent bit is on, _modifiers[0] is on, and so on).
@@ -244,6 +246,8 @@ class _ComplexBinder:
except tkinter.TclError as e:
if e.args[0] == APPLICATION_GONE:
break
+ else:
+ raise
# define the list of event types to be handled by MultiEvent. the order is
# compatible with the definition of event type constants.
@@ -411,6 +415,8 @@ def MultiCallCreator(widget):
except tkinter.TclError as e:
if e.args[0] == APPLICATION_GONE:
break
+ else:
+ raise
_multicall_dict[widget] = MultiCall
return MultiCall