Actually remove version import in earlyinit...

This commit is contained in:
Florian Bruhin 2017-06-19 08:59:26 +02:00
parent fdba676933
commit 6c534bea6b

View File

@ -271,7 +271,7 @@ def qt_version(qversion=None, qt_version=None):
def check_qt_version(backend):
"""Check if the Qt version is recent enough."""
from PyQt5.QtCore import PYQT_VERSION, PYQT_VERSION_STR
from qutebrowser.utils import qtutils, version
from qutebrowser.utils import qtutils
if (not qtutils.version_check('5.2.0', strict=True) or
PYQT_VERSION < 0x050200):
text = ("Fatal error: Qt and PyQt >= 5.2.0 are required, but Qt {} / "