community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1704032 - /comdev/projects.apache.org/scripts/cronjobs/podlings.py
Date Sat, 19 Sep 2015 14:01:14 GMT
Author: sebb
Date: Sat Sep 19 14:01:14 2015
New Revision: 1704032

URL: http://svn.apache.org/viewvc?rev=1704032&view=rev
Log:
Let's use UTF-8

Modified:
    comdev/projects.apache.org/scripts/cronjobs/podlings.py

Modified: comdev/projects.apache.org/scripts/cronjobs/podlings.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/podlings.py?rev=1704032&r1=1704031&r2=1704032&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/podlings.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/podlings.py Sat Sep 19 14:01:14 2015
@@ -111,13 +111,13 @@ for i in js:
     current += i['retired']
     
 print("Writing podlings.json")
-with open('../../site/json/foundation/podlings.json', 'w') as f:
-    json.dump(cpods, f, sort_keys=True, indent=0)
+with open('../../site/json/foundation/podlings.json', 'w', encoding='utf-8') as f:
+    json.dump(cpods, f, sort_keys=True, indent=0, ensure_ascii=False)
     f.close()
 
 print("Writing podlings-history.json")
-with open('../../site/json/foundation/podlings-history.json', 'w') as f:
-    json.dump(cpodsHistory, f, sort_keys=True, indent=0)
+with open('../../site/json/foundation/podlings-history.json', 'w', encoding='utf-8') as f:
+    json.dump(cpodsHistory, f, sort_keys=True, indent=0, ensure_ascii=False)
     f.close()
 
 print("All done!")



Mime
View raw message