mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
match isn't helpful with the new NOQA regexp
This commit is contained in:
parent
49b10fcad3
commit
bdc297d151
1 changed files with 1 additions and 1 deletions
|
|
@ -24,4 +24,4 @@ def skip_file(path):
|
|||
content = f.read()
|
||||
finally:
|
||||
f.close()
|
||||
return _NOQA.match(content) is not None
|
||||
return _NOQA.search(content) is not None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue