Skip to content

Commit

Permalink
Merge pull request #309 from maebert/tmpfile-fix
Browse files Browse the repository at this point in the history
Fixes #308
  • Loading branch information
maebert committed Nov 17, 2014
2 parents 1046c18 + e332971 commit 49b9e79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog

### 1.9 (July 21, 2014)

* __1.9.8__ Fixes a problem with temporary files on windows
* __1.9.7__ Fixes writing non-ascii entries on the prompt
* __1.9.6__ Fuzzy time parsing improvements (thanks to @pcarranza)
* __1.9.5__ Multi-word tags for DayOne Journals
Expand Down
2 changes: 1 addition & 1 deletion jrnl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from __future__ import absolute_import

__title__ = 'jrnl'
__version__ = '1.9.7'
__version__ = '1.9.8'
__author__ = 'Manuel Ebert'
__license__ = 'MIT License'
__copyright__ = 'Copyright 2013 - 2014 Manuel Ebert'
Expand Down
2 changes: 1 addition & 1 deletion jrnl/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def load_and_fix_json(json_path):
sys.exit(1)

def get_text_from_editor(config, template=""):
_, tmpfile = os.path.join(tempfile.mkstemp(prefix="jrnl", text=True, suffix=".txt"))
_, tmpfile = tempfile.mkstemp(prefix="jrnl", text=True, suffix=".txt")
with codecs.open(tmpfile, 'w', "utf-8") as f:
if template:
f.write(template)
Expand Down

0 comments on commit 49b9e79

Please sign in to comment.