1 |
commit: a011f2ef970501dcea469a4976962616d5b0cfda |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 10 03:45:12 2013 +0000 |
4 |
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 29 02:28:03 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=a011f2ef |
7 |
|
8 |
WebappConfig/content.py: Encodes md5 content in utf-8 when writing. |
9 |
|
10 |
--- |
11 |
WebappConfig/content.py | 2 +- |
12 |
1 file changed, 1 insertion(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/WebappConfig/content.py b/WebappConfig/content.py |
15 |
index de65d1d..8fe5be9 100644 |
16 |
--- a/WebappConfig/content.py |
17 |
+++ b/WebappConfig/content.py |
18 |
@@ -298,7 +298,7 @@ class Contents: |
19 |
fd = os.open(self.appdb(), os.O_WRONLY | os.O_CREAT, |
20 |
self.__perm(0o600)) |
21 |
|
22 |
- os.write(fd, '\n'.join(values)) |
23 |
+ os.write(fd, ('\n'.join(values)).encode('utf-8')) |
24 |
|
25 |
os.close(fd) |
26 |
except Exception as e: |