From 1abfdc340a940b64f479d20cb0a16379deae6c18 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 18 Feb 2017 16:29:36 -0800 Subject: [PATCH] lint-all: Soften check for % comprehensions. --- tools/lint-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lint-all b/tools/lint-all index 673032be0e..012b03f4da 100755 --- a/tools/lint-all +++ b/tools/lint-all @@ -347,7 +347,7 @@ def build_custom_checkers(by_lang): # This next check could have false positives, but it seems pretty # rare; if we find any, they can be added to the exclude list for # this rule. - {'pattern': '% [a-zA-Z0-9_.]*\)?$', + {'pattern': ' % [a-zA-Z0-9_.]*\)?$', 'exclude_line': set([ ('tools/tests/test_template_parser.py', '{% foo'), ]),