From bdc297d151fce053e21b64273f2f53ddcb19a045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Peignier?= Date: Mon, 30 Jan 2012 11:04:28 +0100 Subject: [PATCH] match isn't helpful with the new NOQA regexp --- flake8/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8/util.py b/flake8/util.py index 42f15d8..b41b3ee 100644 --- a/flake8/util.py +++ b/flake8/util.py @@ -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