From b61de2d46596ac00dcf2d33bbce2023d0bf4207b Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Mon, 7 Aug 2017 14:23:07 -0400 Subject: [PATCH] [3.6] bpo-29910: IDLE - revert `break`s that disabled calltip close. (GH-2997) (#3017) (cherry picked from commit 8922587) --- Lib/idlelib/parenmatch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 @@ class ParenMatch: # If user bound non-closer to <>, 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."