From ccee4d49e0095f7f4524fe256326550a0ce5a492 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 14 Apr 2018 21:55:00 -0700 Subject: [PATCH] pull: Add sort_keys=True for license.jsonld I'd missed this in 8398a357 (pull: Add JSON-LD markup, 2018-01-04, #12). Adding it here reduces unnecessary churn in the gh-pages branch. --- pull.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pull.py b/pull.py index c4da6a2..9836d55 100755 --- a/pull.py +++ b/pull.py @@ -301,7 +301,7 @@ def save(licenses, base_uri, dir=os.curdir): }, } with open(os.path.join(schema_dir, 'license.jsonld'), 'w') as f: - json.dump(obj=license_schema, fp=f, indent=2) + json.dump(obj=license_schema, fp=f, indent=2, sort_keys=True) f.write('\n') license_schema_uri = urllib.parse.urljoin( base=base_uri, url='schema/license.jsonld') -- 2.25.1