[Blends-commit] [SCM] website branch, master, updated. b9566af496323ceadabb21da1592ea9c86b031cf

Ole Streicher olebole at debian.org
Sat Mar 5 19:33:06 UTC 2016


The following commit has been merged in the master branch:
commit b2cd2b383f2a2607492c87109889d6d97e5ae451
Author: Ole Streicher <olebole at debian.org>
Date:   Sat Mar 5 20:29:48 2016 +0100

    Replace remaining open() with codec.open()

diff --git a/webtools/bugs.py b/webtools/bugs.py
index 1aa2d8f..a91d563 100755
--- a/webtools/bugs.py
+++ b/webtools/bugs.py
@@ -457,11 +457,11 @@ the right shows the tasks of %s.""" ) \
     	#data['severitystat']    = severitystat[task]
     
     	template = loader.load('bugs.xhtml')
-    	f = open(outputdir + '/' + task + '.html', 'w')
+    	f = codecs.open(outputdir + '/' + task + '.html', 'w', 'utf-8')
     	try:
             print >> f, template.generate(**data).render('xhtml')
         except UnicodeDecodeError, err:
-            fd = open('debug_'+blendname+'_bugs.json', 'w')
+            fd = codecs.open('debug_'+blendname+'_bugs.json', 'w', 'utf-8')
             print >>fd, json.dumps(bugs_data[task])
             fd.close()
             SetFilePermissions(outputdir + '/' + task + '.html')

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list