Skip to content

Commit

Permalink
Do not use binary mode with encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jan 9, 2017
1 parent 953493f commit 3470cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v7/orgmode/orgmode.py
Expand Up @@ -106,7 +106,7 @@ def create_post(self, path, **kw):
metadata.update(kw) metadata.update(kw)
makedirs(os.path.dirname(path)) makedirs(os.path.dirname(path))


with io.open(path, "wb+", encoding="utf-8") as fd: with io.open(path, "w+", encoding="utf-8") as fd:
if onefile: if onefile:
fd.write("#+BEGIN_COMMENT\n") fd.write("#+BEGIN_COMMENT\n")
if write_metadata: if write_metadata:
Expand Down

0 comments on commit 3470cbe

Please sign in to comment.