1 |
commit: a5962e6adaef7201233e235401d50fb96142d7d6 |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 10 03:35:30 2013 +0000 |
4 |
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 29 02:29:10 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=a5962e6a |
7 |
|
8 |
WebappConfig/dotconfig.py: Encodes .webapp info in utf-8 when writing. |
9 |
|
10 |
--- |
11 |
WebappConfig/dotconfig.py | 3 +-- |
12 |
1 file changed, 1 insertion(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/WebappConfig/dotconfig.py b/WebappConfig/dotconfig.py |
15 |
index ce2845c..cab0392 100644 |
16 |
--- a/WebappConfig/dotconfig.py |
17 |
+++ b/WebappConfig/dotconfig.py |
18 |
@@ -248,7 +248,6 @@ class DotConfig: |
19 |
'# automatically created by Gentoo\'s webapp-config', |
20 |
'# do NOT edit this file by hand', |
21 |
'',] |
22 |
- |
23 |
for i in self.__tokens: |
24 |
info.append(i + '="' + self.__data[i] + '"') |
25 |
|
26 |
@@ -259,7 +258,7 @@ class DotConfig: |
27 |
os.O_WRONLY | os.O_CREAT, |
28 |
self.__perm(0o600)) |
29 |
|
30 |
- os.write(fd, '\n'.join(info)) |
31 |
+ os.write(fd, ('\n'.join(info)).encode('utf-8')) |
32 |
os.close(fd) |
33 |
|
34 |
except Exception as e: |