match isn't helpful with the new NOQA regexp

This commit is contained in:
Timothée Peignier 2012-01-30 11:04:28 +01:00
parent 49b10fcad3
commit bdc297d151

View file

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