diff options
Diffstat (limited to 'WebappConfig/dotconfig.py')
-rw-r--r-- | WebappConfig/dotconfig.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/WebappConfig/dotconfig.py b/WebappConfig/dotconfig.py index ce2845c..cab0392 100644 --- a/WebappConfig/dotconfig.py +++ b/WebappConfig/dotconfig.py @@ -248,7 +248,6 @@ class DotConfig: '# automatically created by Gentoo\'s webapp-config', '# do NOT edit this file by hand', '',] - for i in self.__tokens: info.append(i + '="' + self.__data[i] + '"') @@ -259,7 +258,7 @@ class DotConfig: os.O_WRONLY | os.O_CREAT, self.__perm(0o600)) - os.write(fd, '\n'.join(info)) + os.write(fd, ('\n'.join(info)).encode('utf-8')) os.close(fd) except Exception as e: |