mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
d65f487a91
Replace the print statement, that is only available in Py2, with a print function that is available in both Py2 and Py3 and drop the explicit python version in the shebang. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
10 lines
191 B
Python
Executable File
10 lines
191 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import json
|
|
|
|
dec = json.JSONDecoder()
|
|
data, pos = dec.raw_decode(sys.stdin.read())
|
|
json.dump(data, sys.stdout, indent=2, separators=(',', ': '))
|
|
print("\n")
|