diff options
author | mathieui <mathieui@mathieui.net> | 2018-01-13 15:33:19 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-01-13 15:33:19 +0100 |
commit | 12ede4d3019a611b3b58d245d65c52bc01f37046 (patch) | |
tree | c723738a7d266fdabea15b1ebcd17fec7cb648f1 /poezio/config.py | |
parent | 6fe2f208337db898d370d7a2374b416d998b5b5f (diff) | |
download | poezio-12ede4d3019a611b3b58d245d65c52bc01f37046.tar.gz poezio-12ede4d3019a611b3b58d245d65c52bc01f37046.tar.bz2 poezio-12ede4d3019a611b3b58d245d65c52bc01f37046.tar.xz poezio-12ede4d3019a611b3b58d245d65c52bc01f37046.zip |
yapf -ir
Diffstat (limited to 'poezio/config.py')
-rw-r--r-- | poezio/config.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/poezio/config.py b/poezio/config.py index 08920942..528debc6 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -337,7 +337,12 @@ class Config(RawConfigParser): prefix, file = path.split(self.file_name) filename = path.join(prefix, '.%s.tmp' % file) fd = os.fdopen( - os.open(filename, os.O_WRONLY | os.O_CREAT, 0o600,), 'w', + os.open( + filename, + os.O_WRONLY | os.O_CREAT, + 0o600, + ), + 'w', encoding='utf-8') for line in lines: fd.write('%s\n' % line) |