mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-16 17:41:59 +00:00
12 lines
201 B
Python
Executable File
12 lines
201 B
Python
Executable File
#!/usr/bin/python
|
|
import json
|
|
import sys
|
|
|
|
for i in sys.argv[1:]:
|
|
with open(i, "r+") as fp:
|
|
x = json.load(fp)
|
|
x["files"] = {}
|
|
fp.seek(0)
|
|
json.dump(x, fp, separators=(',', ':'))
|
|
fp.truncate()
|