community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1671705 - in /comdev/projects.apache.org/scripts/import: addpmc.py parsecommittees.py parsepmcs.py rdfparse.py
Date Mon, 06 Apr 2015 22:29:25 GMT
Author: hboutemy
Date: Mon Apr  6 22:29:25 2015
New Revision: 1671705

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

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

Modified: comdev/projects.apache.org/scripts/import/addpmc.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/addpmc.py?rev=1671705&r1=1671704&r2=1671705&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/addpmc.py (original)
+++ comdev/projects.apache.org/scripts/import/addpmc.py Mon Apr  6 22:29:25 2015
@@ -41,11 +41,11 @@ else:
     cjs[founded] = [name]
 
 with open("../../site/json/foundation/pmcs.json", "w") as f:
-    f.write(json.dumps(js))
+    f.write(json.dumps(js, sort_keys=True, indent=0))
     f.close()
     
 with open("../../site/json/foundation/committees.json", "w") as f:
-    f.write(json.dumps(cjs))
+    f.write(json.dumps(cjs, sort_keys=True, indent=0))
     f.close()
     
 print("Done!")
\ No newline at end of file

Modified: comdev/projects.apache.org/scripts/import/parsecommittees.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/parsecommittees.py?rev=1671705&r1=1671704&r2=1671705&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parsecommittees.py (original)
+++ comdev/projects.apache.org/scripts/import/parsecommittees.py Mon Apr  6 22:29:25 2015
@@ -41,7 +41,7 @@ for pmc in re.findall(r"\* .+?\s+\(est\.
         c[project] = True
 
 with open("../../site/json/foundation/committees.json", "w") as f:
-    f.write(json.dumps(committees))
+    f.write(json.dumps(committees, sort_keys=True, indent=0))
     f.close()
 
 for chair in chairs:

Modified: comdev/projects.apache.org/scripts/import/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/parsepmcs.py?rev=1671705&r1=1671704&r2=1671705&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parsepmcs.py (original)
+++ comdev/projects.apache.org/scripts/import/parsepmcs.py Mon Apr  6 22:29:25 2015
@@ -57,7 +57,7 @@ for s in itemlist :
         print(err)
         
 with open ("../../site/json/foundation/pmcs.json", "w") as f:
-    f.write(json.dumps(projects))
+    f.write(json.dumps(projects, sort_keys=True, indent=0))
     f.close()
 print("Done!")
     
\ No newline at end of file

Modified: comdev/projects.apache.org/scripts/import/rdfparse.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/rdfparse.py?rev=1671705&r1=1671704&r2=1671705&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/rdfparse.py (original)
+++ comdev/projects.apache.org/scripts/import/rdfparse.py Mon Apr  6 22:29:25 2015
@@ -85,7 +85,7 @@ for s in itemlist :
         print("Error: %s" % err)
         
 with open ("../../site/json/foundation/projects.json", "w") as f:
-    f.write(json.dumps(projects))
+    f.write(json.dumps(projects, sort_keys=True, indent=0))
     f.close()
 print("Done!")
     
\ No newline at end of file



Mime
View raw message