Have safe_remove remove all instances
This commit is contained in:
parent
ae112294c8
commit
2e657f0020
9
setup.py
9
setup.py
@ -339,10 +339,11 @@ def parallel_run(todo, desc='Compiling {} ...'):
|
|||||||
|
|
||||||
def safe_remove(items, *removals):
|
def safe_remove(items, *removals):
|
||||||
for x in removals:
|
for x in removals:
|
||||||
try:
|
while True:
|
||||||
items.remove(x)
|
try:
|
||||||
except ValueError:
|
items.remove(x)
|
||||||
pass
|
except ValueError:
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
def compile_c_extension(kenv, module, incremental, compilation_database, all_keys, sources, headers):
|
def compile_c_extension(kenv, module, incremental, compilation_database, all_keys, sources, headers):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user