mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Have safe_remove remove all instances
This commit is contained in:
parent
ae112294c8
commit
2e657f0020
1 changed files with 5 additions and 4 deletions
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue