summaryrefslogtreecommitdiff
path: root/qutebrowser/utils/utils.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-12-08 21:53:29 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-12-08 21:53:29 +0100
commit57c514eb40c86d61eb90e8354e9010cc6a5390ce (patch)
tree09d2f6086d3b7f277358963ef2b87ccfbd7c65ca /qutebrowser/utils/utils.py
parent4a931f7114b13b8a95b8eb0c0d3a41113dd49111 (diff)
downloadqutebrowser-57c514eb40c86d61eb90e8354e9010cc6a5390ce.tar.gz
qutebrowser-57c514eb40c86d61eb90e8354e9010cc6a5390ce.zip
Fix pylint/coverage
Diffstat (limited to 'qutebrowser/utils/utils.py')
-rw-r--r--qutebrowser/utils/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/utils/utils.py b/qutebrowser/utils/utils.py
index ab85c4d06..331bf5f96 100644
--- a/qutebrowser/utils/utils.py
+++ b/qutebrowser/utils/utils.py
@@ -45,7 +45,7 @@ from PyQt5.QtWidgets import QApplication
# We cannot use the stdlib version on 3.7-3.8 because we need the files() API.
if sys.version_info >= (3, 9):
import importlib.resources as importlib_resources
-else:
+else: # pragma: no cover
import importlib_resources
import pkg_resources
import yaml
@@ -74,7 +74,7 @@ is_posix = os.name == 'posix'
try:
# Protocol was added in Python 3.8
- from typing import Protocol
+ from typing import Protocol # pylint: disable=ungrouped-imports
except ImportError: # pragma: no cover
if not TYPE_CHECKING:
class Protocol: