Fix bad-indentation issues for pylint 2.0
See https://github.com/PyCQA/pylint/issues/2301
This commit is contained in:
parent
e50b6912a7
commit
e0f3285f05
@ -206,6 +206,7 @@ def _check_modules(modules):
|
|||||||
# https://bitbucket.org/fdik/pypeg/commits/dd15ca462b532019c0a3be1d39b8ee2f3fa32f4e
|
# https://bitbucket.org/fdik/pypeg/commits/dd15ca462b532019c0a3be1d39b8ee2f3fa32f4e
|
||||||
messages = ['invalid escape sequence',
|
messages = ['invalid escape sequence',
|
||||||
'Flags not at the start of the expression']
|
'Flags not at the start of the expression']
|
||||||
|
# pylint: disable=bad-continuation
|
||||||
with log.ignore_py_warnings(
|
with log.ignore_py_warnings(
|
||||||
category=DeprecationWarning,
|
category=DeprecationWarning,
|
||||||
message=r'({})'.format('|'.join(messages))
|
message=r'({})'.format('|'.join(messages))
|
||||||
@ -216,6 +217,7 @@ def _check_modules(modules):
|
|||||||
category=ImportWarning,
|
category=ImportWarning,
|
||||||
message=r'Not importing directory .*: missing __init__'
|
message=r'Not importing directory .*: missing __init__'
|
||||||
):
|
):
|
||||||
|
# pylint: enable=bad-continuation
|
||||||
importlib.import_module(name)
|
importlib.import_module(name)
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
_die(text, e)
|
_die(text, e)
|
||||||
|
@ -140,11 +140,9 @@ class ExternalEditor(QObject):
|
|||||||
# the file from the external editor, see
|
# the file from the external editor, see
|
||||||
# https://github.com/qutebrowser/qutebrowser/issues/1767
|
# https://github.com/qutebrowser/qutebrowser/issues/1767
|
||||||
with tempfile.NamedTemporaryFile(
|
with tempfile.NamedTemporaryFile(
|
||||||
# pylint: disable=bad-continuation
|
|
||||||
mode='w', prefix=prefix,
|
mode='w', prefix=prefix,
|
||||||
encoding=config.val.editor.encoding,
|
encoding=config.val.editor.encoding,
|
||||||
delete=False) as fobj:
|
delete=False) as fobj:
|
||||||
# pylint: enable=bad-continuation
|
|
||||||
if text:
|
if text:
|
||||||
fobj.write(text)
|
fobj.write(text)
|
||||||
return fobj.name
|
return fobj.name
|
||||||
|
Loading…
Reference in New Issue
Block a user