From 870c9d1c096c44eaad5fd8e9aeeae8b6255fc4d2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 3 Feb 2012 10:54:05 -0500 Subject: [PATCH] codereview: allow spaces in y.tab.[ch] R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5620053 --- lib/codereview/codereview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 7e9f6ca7288..6f5b8d590db 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -925,7 +925,7 @@ def CheckGofmt(ui, repo, files, just_warn): # Check that *.[chys] files indent using tabs. def CheckTabfmt(ui, repo, files, just_warn): - files = [f for f in files if f.startswith('src/') and re.search(r"\.[chys]$", f)] + files = [f for f in files if f.startswith('src/') and re.search(r"\.[chys]$", f) and not re.search(r"\.tab\.[ch]$", f)] if not files: return cwd = os.getcwd()