[Python-checkins] bpo-29910: IDLE - revert `break`s that disabled calltip close. (#2997)

Terry Jan Reedy webhook-mailer at python.org
Mon Aug 7 13:37:13 EDT 2017


https://github.com/python/cpython/commit/89225871d314fa675ea9ac292e7bc75320f1aef5
commit: 89225871d314fa675ea9ac292e7bc75320f1aef5
branch: master
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: GitHub <noreply at github.com>
date: 2017-08-07T13:37:10-04:00
summary:

bpo-29910: IDLE - revert `break`s that disabled calltip close. (#2997)

files:
M Lib/idlelib/parenmatch.py

diff --git a/Lib/idlelib/parenmatch.py b/Lib/idlelib/parenmatch.py
index c15cb818cd8..7f25880ae5e 100644
--- a/Lib/idlelib/parenmatch.py
+++ b/Lib/idlelib/parenmatch.py
@@ -104,18 +104,18 @@ def paren_closed_event(self, event):
         # If user bound non-closer to <<paren-closed>>, quit.
         closer = self.text.get("insert-1c")
         if closer not in _openers:
-            return "break"
+            return
         hp = HyperParser(self.editwin, "insert-1c")
         if not hp.is_in_code():
-            return "break"
+            return
         indices = hp.get_surrounding_brackets(_openers[closer], True)
         if indices is None:
             self.bell()
-            return "break"
+            return
         self.activate_restore()
         self.create_tag(indices)
         self.set_timeout()
-        return "break"
+        return
 
     def restore_event(self, event=None):
         "Remove effect of doing match."



More information about the Python-checkins mailing list