From f8f74400c69a9a899edd35e89491ed2f878faea8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 7 Sep 2016 18:57:00 +0200 Subject: [PATCH] Fix more lint --- qutebrowser/browser/shared.py | 8 ++++---- qutebrowser/misc/earlyinit.py | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/qutebrowser/browser/shared.py b/qutebrowser/browser/shared.py index d2d9489ed..ddc49e02e 100644 --- a/qutebrowser/browser/shared.py +++ b/qutebrowser/browser/shared.py @@ -29,10 +29,10 @@ def custom_headers(): headers[b'DNT'] = dnt headers[b'X-Do-Not-Track'] = dnt - custom_headers = config.get('network', 'custom-headers') - if custom_headers is not None: - for header, value in custom_headers.items(): - headers[header.encode('ascii')] = value.encode('ascii') + config_headers = config.get('network', 'custom-headers') + if config_headers is not None: + for header, value in config_headers.items(): + headers[header.encode('ascii')] = value.encode('ascii') accept_language = config.get('network', 'accept-language') if accept_language is not None: diff --git a/qutebrowser/misc/earlyinit.py b/qutebrowser/misc/earlyinit.py index 65e6ee363..89d063f20 100644 --- a/qutebrowser/misc/earlyinit.py +++ b/qutebrowser/misc/earlyinit.py @@ -229,7 +229,8 @@ def check_qt_version(args): text = ("Fatal error: Qt and PyQt >= 5.2.0 are required, but {} is " "installed.".format(qVersion())) _die(text) - elif args.backend == 'webengine' and qtutils.version_check('5.6.0', operator.lt): + elif args.backend == 'webengine' and qtutils.version_check('5.6.0', + operator.lt): text = ("Fatal error: Qt and PyQt >= 5.6.0 are required for " "QtWebEngine support, but {} is installed.".format(qVersion())) _die(text)