summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2013-10-09 23:45:12 -0400
committerDevan Franchini <twitch153@gentoo.org>2013-10-28 22:28:03 -0400
commita011f2ef970501dcea469a4976962616d5b0cfda (patch)
tree785a48fa94a242cacd43e1d48a4776130c367bf4
parentWebappConfig/compat.py: Alters warped compat file from cherry-picking. (diff)
downloadwebapp-config-a011f2ef970501dcea469a4976962616d5b0cfda.tar.gz
webapp-config-a011f2ef970501dcea469a4976962616d5b0cfda.tar.bz2
webapp-config-a011f2ef970501dcea469a4976962616d5b0cfda.zip
WebappConfig/content.py: Encodes md5 content in utf-8 when writing.
-rw-r--r--WebappConfig/content.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebappConfig/content.py b/WebappConfig/content.py
index de65d1d..8fe5be9 100644
--- a/WebappConfig/content.py
+++ b/WebappConfig/content.py
@@ -298,7 +298,7 @@ class Contents:
fd = os.open(self.appdb(), os.O_WRONLY | os.O_CREAT,
self.__perm(0o600))
- os.write(fd, '\n'.join(values))
+ os.write(fd, ('\n'.join(values)).encode('utf-8'))
os.close(fd)
except Exception as e: