Fixes for Python 3 Support

This commit is contained in:
Manuel Ebert 2013-04-19 15:19:21 +02:00
parent 3052e0cce7
commit 634d84c77e
4 changed files with 28 additions and 13 deletions

View file

@ -7,10 +7,16 @@
license: MIT, see LICENSE for more details.
"""
import Journal
import util
import exporters
import install
try:
from . import Journal
from . import util
from . import exporters
from . import install
except (SystemError, ValueError):
import Journal
import util
import exporters
import install
import os
import tempfile
import subprocess
@ -186,7 +192,7 @@ def cli():
raw = " ".join(args.text).strip()
entry = journal.new_entry(raw, args.date)
entry.starred = args.star
print("[Entry added to {0} journal]").format(journal_name)
print("[Entry added to {0} journal]".format(journal_name))
journal.write()
# Reading mode