deletes a bunch of spaces on this json verifier I guess /shrug

It won't let me edit anything else without changing this I never touched it at all why is it shouting at meeeeeee
This commit is contained in:
Dan-Neposh
2020-11-12 16:11:49 -05:00
parent bf7bf7d788
commit 6a42dcced9
+20 -20
View File
@@ -1,20 +1,20 @@
import sys
import json
if len(sys.argv) <= 1:
exit(1)
status = 0
for file in sys.argv[1:]:
with open(file, encoding="ISO-8859-1") as f:
try:
json.load(f)
except ValueError as exception:
print("JSON error in {}".format(file))
print(exception)
status = 1
else:
print("Valid {}".format(file))
exit(status)
import sys
import json
if len(sys.argv) <= 1:
exit(1)
status = 0
for file in sys.argv[1:]:
with open(file, encoding="ISO-8859-1") as f:
try:
json.load(f)
except ValueError as exception:
print("JSON error in {}".format(file))
print(exception)
status = 1
else:
print("Valid {}".format(file))
exit(status)