From a2e457ccc3ce49c1a0f480d714fd3b5dc3280623 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 2 Sep 2014 20:45:25 +0200 Subject: [PATCH] Remove old Ubuntu workaround. --- qutebrowser/keyinput/modeman.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/qutebrowser/keyinput/modeman.py b/qutebrowser/keyinput/modeman.py index 72d81e5fb..23eebc557 100644 --- a/qutebrowser/keyinput/modeman.py +++ b/qutebrowser/keyinput/modeman.py @@ -114,19 +114,6 @@ class ModeManager(QObject): @property def mode(self): """Read-only property for the current mode.""" - # WORKAROUND - # For some reason, on Ubuntu (Python 3.3.2, PyQt 5.0.1, Qt 5.0.2) there - # is a lingering exception here sometimes. With this construct, we - # clear this exception which makes no sense at all anyways. - # Details: - # http://www.riverbankcomputing.com/pipermail/pyqt/2014-May/034196.html - # If we wouldn't clear the exception, we would actually get an - # AttributeError for the mode property in eventFilter because of - # another PyQt oddity. - try: - raise - except: # pylint: disable=bare-except - pass if not self._mode_stack: return None return self._mode_stack[-1]