The following commit has been merged in the master branch:
commit b2cd2b383f2a2607492c87109889d6d97e5ae451
Author: Ole Streicher <[email protected]>
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
_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit