Merge "Exclude list may have comment"

This commit is contained in:
Treehugger Robot
2022-07-19 06:44:43 +00:00
committed by Gerrit Code Review

View File

@@ -30,7 +30,7 @@ def build_cmd(ninja_binary, ninja_file, target, exempted_file_list):
if exempted_file_list and exempted_file_list.exists():
with open(exempted_file_list) as fin:
for l in map(str.strip, fin.readlines()):
if l:
if l and not l.startswith('#'):
cmd.extend(['-e', l])
cmd.append(target)