You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/09/21 18:32:52 UTC

svn commit: r1704353 - /comdev/projects.apache.org/scripts/import/parsecommittees.py

Author: sebb
Date: Mon Sep 21 16:32:49 2015
New Revision: 1704353

URL: http://svn.apache.org/viewvc?rev=1704353&view=rev
Log:
Write directly to file

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

Modified: comdev/projects.apache.org/scripts/import/parsecommittees.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/parsecommittees.py?rev=1704353&r1=1704352&r2=1704353&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parsecommittees.py (original)
+++ comdev/projects.apache.org/scripts/import/parsecommittees.py Mon Sep 21 16:32:49 2015
@@ -339,5 +339,5 @@ with open("../../site/json/foundation/co
 
 print("Writing json/foundation/pmcs.json...")
 with open ("../../site/json/foundation/pmcs.json", "w") as f:
-    f.write(json.dumps(pmcs, sort_keys=True, indent=0))
+    json.dump(pmcs, f, sort_keys=True, indent=0)
     f.close()