aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index 03cc9f942..0189859ad 100755
--- a/test.py
+++ b/test.py
@@ -134,7 +134,7 @@ def hashFile(fname):
with open(fname ,"rb") as f:
k = sha3.keccak_256()
if fname.endswith(".json"):
- s = json.dumps(json.load(f), separators=(',', ':'))
+ s = json.dumps(json.load(f), sort_keys=True, separators=(',', ':'))
elif fname.endswith(".yml"):
s = json.dumps(yaml.load(f), sort_keys=True, separators=(',', ':'))
else: