mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
Have safe_remove remove all instances
This commit is contained in:
9
setup.py
9
setup.py
@@ -339,10 +339,11 @@ def parallel_run(todo, desc='Compiling {} ...'):
|
||||
|
||||
def safe_remove(items, *removals):
|
||||
for x in removals:
|
||||
try:
|
||||
items.remove(x)
|
||||
except ValueError:
|
||||
pass
|
||||
while True:
|
||||
try:
|
||||
items.remove(x)
|
||||
except ValueError:
|
||||
break
|
||||
|
||||
|
||||
def compile_c_extension(kenv, module, incremental, compilation_database, all_keys, sources, headers):
|
||||
|
||||
Reference in New Issue
Block a user