This commit is contained in:
Kovid Goyal 2018-03-12 07:53:31 +05:30
parent 2c8414db5d
commit ffc717717c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -616,7 +616,7 @@ def safe_remove(*entries):
else:
os.unlink(x)
shutil.rmtree('build', 'compile_commands.json')
safe_remove('build', 'compile_commands.json')
for root, dirs, files in os.walk('.'):
remove_dirs = {d for d in dirs if d == '__pycache__'}
[(shutil.rmtree(os.path.join(root, d)), dirs.remove(d)) for d in remove_dirs]