Skip to content

Commit

Permalink
Fix bad-indentation issues for pylint 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Jul 16, 2018
1 parent e50b691 commit e0f3285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions qutebrowser/misc/earlyinit.py
Expand Up @@ -206,6 +206,7 @@ def _check_modules(modules):
# https://bitbucket.org/fdik/pypeg/commits/dd15ca462b532019c0a3be1d39b8ee2f3fa32f4e
messages = ['invalid escape sequence',
'Flags not at the start of the expression']
# pylint: disable=bad-continuation
with log.ignore_py_warnings(
category=DeprecationWarning,
message=r'({})'.format('|'.join(messages))
Expand All @@ -216,6 +217,7 @@ def _check_modules(modules):
category=ImportWarning,
message=r'Not importing directory .*: missing __init__'
):
# pylint: enable=bad-continuation
importlib.import_module(name)
except ImportError as e:
_die(text, e)
Expand Down
2 changes: 0 additions & 2 deletions qutebrowser/misc/editor.py
Expand Up @@ -140,11 +140,9 @@ def _create_tempfile(self, text, prefix):
# the file from the external editor, see
# https://github.com/qutebrowser/qutebrowser/issues/1767
with tempfile.NamedTemporaryFile(
# pylint: disable=bad-continuation
mode='w', prefix=prefix,
encoding=config.val.editor.encoding,
delete=False) as fobj:
# pylint: enable=bad-continuation
if text:
fobj.write(text)
return fobj.name
Expand Down

0 comments on commit e0f3285

Please sign in to comment.