community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1671706 - /comdev/projects.apache.org/scripts/import/rdfparse.py
Date Mon, 06 Apr 2015 22:30:30 GMT
Author: hboutemy
Date: Mon Apr  6 22:30:30 2015
New Revision: 1671706

URL: http://svn.apache.org/r1671706
Log:
minimal formatting for generated json files

Modified:
    comdev/projects.apache.org/scripts/import/rdfparse.py

Modified: comdev/projects.apache.org/scripts/import/rdfparse.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/rdfparse.py?rev=1671706&r1=1671705&r2=1671706&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/rdfparse.py (original)
+++ comdev/projects.apache.org/scripts/import/rdfparse.py Mon Apr  6 22:30:30 2015
@@ -79,7 +79,7 @@ for s in itemlist :
                 projects[prname] = pjson
                 print("Writing %s.json..." % prname)
                 with open ("../site/json/projects/%s.json" % prname, "w") as f:
-                    f.write(json.dumps(pjson))
+                    f.write(json.dumps(pjson, sort_keys=True, indent=0))
                     f.close()
     except Exception as err:
         print("Error: %s" % err)



Mime
View raw message