[Python-checkins] cpython: Issue #20167: Add missing else: break in 3 places as noticed by Serhiy.

terry.reedy python-checkins at python.org
Mon Feb 10 22:47:05 CET 2014


http://hg.python.org/cpython/rev/b9e124851e47
changeset:   89124:b9e124851e47
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Mon Feb 10 16:46:28 2014 -0500
summary:
  Issue #20167: Add missing else: break in 3 places as noticed by Serhiy.

files:
  Lib/idlelib/MultiCall.py |  6 ++++++
  1 files changed, 6 insertions(+), 0 deletions(-)


diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py
--- a/Lib/idlelib/MultiCall.py
+++ b/Lib/idlelib/MultiCall.py
@@ -111,6 +111,8 @@
             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 @@
             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 @@
                         except tkinter.TclError as e:
                             if e.args[0] == APPLICATION_GONE:
                                 break
+                            else:
+                                raise
 
     _multicall_dict[widget] = MultiCall
     return MultiCall

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list