From d33e590ce5b3cebd6d81b7d3e7c689b6d6af3ab5 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 15 Mar 2017 22:15:52 +0100 Subject: [PATCH] Fix lint --- qutebrowser/browser/webengine/webengineelem.py | 4 ++-- qutebrowser/browser/webengine/webenginesettings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/browser/webengine/webengineelem.py b/qutebrowser/browser/webengine/webengineelem.py index 0ebcd72b1..3e145468b 100644 --- a/qutebrowser/browser/webengine/webengineelem.py +++ b/qutebrowser/browser/webengine/webengineelem.py @@ -161,11 +161,11 @@ class WebEngineElement(webelem.AbstractWebElement): # pylint doesn't know about Qt.MouseEventSynthesizedBySystem # because it was added in Qt 5.6, but we can be sure we use that with # QtWebEngine. - # pylint: disable=no-member + # pylint: disable=no-member,useless-suppression ev = QMouseEvent(QMouseEvent.MouseButtonPress, QPoint(0, 0), QPoint(0, 0), QPoint(0, 0), Qt.NoButton, Qt.NoButton, Qt.NoModifier, Qt.MouseEventSynthesizedBySystem) - # pylint: enable=no-member + # pylint: enable=no-member,useless-suppression self._tab.send_event(ev) # This actually "clicks" the element by calling focus() on it in JS. self._js_call('focus') diff --git a/qutebrowser/browser/webengine/webenginesettings.py b/qutebrowser/browser/webengine/webenginesettings.py index 830879eed..b029b4fd5 100644 --- a/qutebrowser/browser/webengine/webenginesettings.py +++ b/qutebrowser/browser/webengine/webenginesettings.py @@ -166,7 +166,7 @@ def init(args): # Hide "No OpenGL_accelerate module loaded: ..." message logging.getLogger('OpenGL.acceleratesupport').propagate = False try: - from OpenGL import GL + from OpenGL import GL # pylint: disable=unused-variable except ImportError: pass else: