mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-16 09:09:52 +00:00
Fix lint error
This commit is contained in:
parent
29d8b11209
commit
d23f77d06e
1 changed files with 2 additions and 1 deletions
|
|
@ -349,7 +349,8 @@ class FileProcessor(object):
|
||||||
:rtype:
|
:rtype:
|
||||||
bool
|
bool
|
||||||
"""
|
"""
|
||||||
if not self.disable_noqa and any(defaults.NOQA_FILE.match(line) for line in self.lines):
|
if not self.disable_noqa \
|
||||||
|
and any(defaults.NOQA_FILE.match(line) for line in self.lines):
|
||||||
return True
|
return True
|
||||||
elif any(defaults.NOQA_FILE.search(line) for line in self.lines):
|
elif any(defaults.NOQA_FILE.search(line) for line in self.lines):
|
||||||
LOG.warning(
|
LOG.warning(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue