From 1e42fd13194500f23f1ca8f6a9daace5add3974f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 1 Mar 2017 11:12:28 +0100 Subject: [PATCH] Fix lint --- qutebrowser/misc/earlyinit.py | 2 +- tests/unit/utils/test_qtutils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/misc/earlyinit.py b/qutebrowser/misc/earlyinit.py index 015efc1e4..4f4f41c32 100644 --- a/qutebrowser/misc/earlyinit.py +++ b/qutebrowser/misc/earlyinit.py @@ -262,7 +262,7 @@ def get_backend(args): def check_qt_version(backend): """Check if the Qt version is recent enough.""" - from PyQt5.QtCore import qVersion, PYQT_VERSION, PYQT_VERSION_STR + from PyQt5.QtCore import PYQT_VERSION, PYQT_VERSION_STR from qutebrowser.utils import qtutils, version if (qtutils.version_check('5.2.0', operator.lt, strict=True) or PYQT_VERSION < 0x050200): diff --git a/tests/unit/utils/test_qtutils.py b/tests/unit/utils/test_qtutils.py index 2a40ca69b..162845b1a 100644 --- a/tests/unit/utils/test_qtutils.py +++ b/tests/unit/utils/test_qtutils.py @@ -66,7 +66,7 @@ def test_version_check(monkeypatch, qversion, compiled, version, op, expected): """ monkeypatch.setattr('qutebrowser.utils.qtutils.qVersion', lambda: qversion) if compiled is not None: - monkeypatch.setattr('qutebrowser.utils.qtutils.QT_VERSION_STR', compiled) + monkeypatch.setattr(qtutils, 'QT_VERSION_STR', compiled) strict = True else: strict = False