community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1688473 - /comdev/reporter.apache.org/data/parsepmcs.py
Date Tue, 30 Jun 2015 15:22:17 GMT
Author: sebb
Date: Tue Jun 30 15:22:16 2015
New Revision: 1688473

URL: http://svn.apache.org/r1688473
Log:
Ensure output can be diffed

Modified:
    comdev/reporter.apache.org/data/parsepmcs.py

Modified: comdev/reporter.apache.org/data/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/data/parsepmcs.py?rev=1688473&r1=1688472&r2=1688473&view=diff
==============================================================================
--- comdev/reporter.apache.org/data/parsepmcs.py (original)
+++ comdev/reporter.apache.org/data/parsepmcs.py Tue Jun 30 15:22:16 2015
@@ -84,12 +84,12 @@ for project in pmcs:
     
 print("Writing pmcs.json")
 with open("pmcs.json", "w") as f:
-    f.write(json.dumps(pmcs))
+    f.write(json.dumps(pmcs, indent=1, sort_keys=True))
     f.close()
 
 print("Writing projects.json")
 with open("projects.json", "w") as f:
-    f.write(json.dumps(projects))
+    f.write(json.dumps(projects, indent=1, sort_keys=True))
     f.close()
     
     



Mime
View raw message