Fix allowlist updater script (#5375)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2021-05-07 23:13:36 -07:00
committed by GitHub
parent 1c76937836
commit 3fa5988a2a

View File

@@ -41,7 +41,7 @@ def remove_entries_from_whitelist(filename: str, entries: Set[str]) -> None:
new_lines: List[str] = []
with open(filename) as f:
for line in f:
entry = line.strip().split(" #")[0]
entry = line.split("#")[0].strip()
if entry in entries:
entries.remove(entry)
else: