Skip to content
Permalink
Browse files

Do not use binary mode with encoding

  • Loading branch information...
Kwpolska committed Jan 9, 2017
1 parent 953493f commit 3470cbe96f7719b9ea322564a7e8b915519c3e04
Showing with 1 addition and 1 deletion.
  1. +1 −1 v7/orgmode/orgmode.py
@@ -106,7 +106,7 @@ def create_post(self, path, **kw):
metadata.update(kw)
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:
fd.write("#+BEGIN_COMMENT\n")
if write_metadata:

0 comments on commit 3470cbe

Please sign in to comment.
You can’t perform that action at this time.