Fix lint
This commit is contained in:
parent
111cc7093f
commit
62f35ee064
@ -28,10 +28,10 @@ import subprocess
|
||||
import importlib
|
||||
import collections
|
||||
import enum
|
||||
import pkg_resources
|
||||
import datetime
|
||||
|
||||
import attr
|
||||
import pkg_resources
|
||||
from PyQt5.QtCore import PYQT_VERSION_STR, QLibraryInfo
|
||||
from PyQt5.QtNetwork import QSslSocket
|
||||
from PyQt5.QtGui import (QOpenGLContext, QOpenGLVersionProfile,
|
||||
@ -325,6 +325,7 @@ def _backend():
|
||||
assert objects.backend == webengine, objects.backend
|
||||
return 'QtWebEngine (Chromium {})'.format(_chromium_version())
|
||||
|
||||
|
||||
def _uptime() -> datetime.timedelta:
|
||||
launch_time = QApplication.instance().launch_time
|
||||
time_delta = datetime.datetime.now() - launch_time
|
||||
@ -332,6 +333,7 @@ def _uptime() -> datetime.timedelta:
|
||||
time_delta -= datetime.timedelta(microseconds=time_delta.microseconds)
|
||||
return time_delta
|
||||
|
||||
|
||||
def version():
|
||||
"""Return a string with various version informations."""
|
||||
lines = ["qutebrowser v{}".format(qutebrowser.__version__)]
|
||||
|
@ -30,10 +30,10 @@ import types
|
||||
import importlib
|
||||
import logging
|
||||
import textwrap
|
||||
import pkg_resources
|
||||
import datetime
|
||||
|
||||
import attr
|
||||
import pkg_resources
|
||||
import pytest
|
||||
|
||||
import qutebrowser
|
||||
|
Loading…
Reference in New Issue
Block a user