Files
libvirt/tests/cputestdata/cpu-reformat.py
T

10 lines
190 B
Python
Raw Normal View History

2019-02-21 20:28:49 +01:00
#!/usr/bin/env python3
import sys
import json
dec = json.JSONDecoder()
data, pos = dec.raw_decode(sys.stdin.read())
json.dump(data, sys.stdout, indent=2, separators=(',', ': '))
print("")