tidy: spew less chaff

This commit is contained in:
Corey Richardson 2014-01-05 08:50:52 -05:00
parent ccaf0b4654
commit 041413b208
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ try:
report_err("TODO is deprecated; use FIXME")
match = re.match(r'^.*//\s*(NOTE.*)$', line)
if match:
report_warn(match.group(1))
m = match.group(1)
if "snap" in m.lower():
report_warn(match.group(1))
match = re.match(r'^.*//\s*SNAP\s+(\w+)', line)
if match:
hsh = match.group(1)