summaryrefslogtreecommitdiff
path: root/qutebrowser/misc/checkpyver.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/misc/checkpyver.py')
-rw-r--r--qutebrowser/misc/checkpyver.py21
1 files changed, 4 insertions, 17 deletions
diff --git a/qutebrowser/misc/checkpyver.py b/qutebrowser/misc/checkpyver.py
index 2a0d184cd..596a7803a 100644
--- a/qutebrowser/misc/checkpyver.py
+++ b/qutebrowser/misc/checkpyver.py
@@ -1,19 +1,6 @@
-# Copyright 2014-2021 Florian Bruhin (The-Compiler) <mail@qutebrowser.org>
+# SPDX-FileCopyrightText: Florian Bruhin (The-Compiler) <mail@qutebrowser.org>
#
-# This file is part of qutebrowser.
-#
-# qutebrowser is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# qutebrowser is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>.
+# SPDX-License-Identifier: GPL-3.0-or-later
"""Check if qutebrowser is run with the correct python version.
@@ -28,8 +15,8 @@ try:
except ImportError: # pragma: no cover
try:
# Python2
- from Tkinter import Tk # type: ignore[import, no-redef]
- import tkMessageBox as messagebox # type: ignore[import, no-redef] # noqa: N813
+ from Tkinter import Tk # type: ignore[import-not-found, no-redef]
+ import tkMessageBox as messagebox # type: ignore[import-not-found, no-redef] # noqa: N813
except ImportError:
# Some Python without Tk
Tk = None # type: ignore[misc, assignment]