Fix more lint

This commit is contained in:
Florian Bruhin 2016-09-07 18:57:00 +02:00
parent d299fd260c
commit f8f74400c6
2 changed files with 6 additions and 5 deletions

View File

@ -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:

View File

@ -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)