Have safe_remove remove all instances

This commit is contained in:
Kovid Goyal 2018-04-03 10:15:58 +05:30
parent ae112294c8
commit 2e657f0020
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -339,10 +339,11 @@ def parallel_run(todo, desc='Compiling {} ...'):
def safe_remove(items, *removals):
for x in removals:
while True:
try:
items.remove(x)
except ValueError:
pass
break
def compile_c_extension(kenv, module, incremental, compilation_database, all_keys, sources, headers):