1 |
commit: 4450127ac1c2ee959725a4061d07711135f93844 |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 10 03:38:06 2013 +0000 |
4 |
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 29 02:30:01 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=4450127a |
7 |
|
8 |
WebappConfig/db.py: Encodes entry output for .webapp-<app>-<version>. |
9 |
|
10 |
This encodes the variable entry in utf-8 when writing to a |
11 |
.webapp-<app>-<version> file, due to previous errors where str |
12 |
did not support the buffer interface. |
13 |
|
14 |
--- |
15 |
WebappConfig/db.py | 2 +- |
16 |
1 file changed, 1 insertion(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/WebappConfig/db.py b/WebappConfig/db.py |
19 |
index 03449a3..f7b8a48 100644 |
20 |
--- a/WebappConfig/db.py |
21 |
+++ b/WebappConfig/db.py |
22 |
@@ -385,7 +385,7 @@ class WebappDB(AppHierarchy): |
23 |
OUT.debug('New record', 7) |
24 |
|
25 |
if not self.__p: |
26 |
- os.write(fd, entry) |
27 |
+ os.write(fd, (entry).encode('utf-8')) |
28 |
os.close(fd) |
29 |
else: |
30 |
OUT.info('Pretended to append installation ' + installdir) |