mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-18 20:11:23 +08:00
1 parent
1c76937836
commit
3fa5988a2a
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user