diff options
Diffstat (limited to 'qutebrowser/browser/network/proxy.py')
-rw-r--r-- | qutebrowser/browser/network/proxy.py | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/qutebrowser/browser/network/proxy.py b/qutebrowser/browser/network/proxy.py index 714823d2c..f0c511853 100644 --- a/qutebrowser/browser/network/proxy.py +++ b/qutebrowser/browser/network/proxy.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 """Handling of proxies.""" @@ -21,7 +8,7 @@ from qutebrowser.qt.core import QUrl, pyqtSlot from qutebrowser.qt.network import QNetworkProxy, QNetworkProxyFactory from qutebrowser.config import config, configtypes -from qutebrowser.utils import message, usertypes, urlutils, utils +from qutebrowser.utils import message, usertypes, urlutils, utils, qtutils from qutebrowser.misc import objects from qutebrowser.browser.network import pac @@ -51,7 +38,7 @@ def _warn_for_pac(): @pyqtSlot() def shutdown(): QNetworkProxyFactory.setApplicationProxyFactory( - None) # type: ignore[arg-type] + qtutils.QT_NONE) class ProxyFactory(QNetworkProxyFactory): |