Now the importer reads from standard input using util.py23_read().

This commit is contained in:
Gregory Crosswhite 2014-10-29 12:56:44 -07:00
parent 93ea6a2a6a
commit 324dfbd2db

View file

@ -22,7 +22,7 @@ class JRNLImporter(BaseImporter):
other_journal_txt = f.read() other_journal_txt = f.read()
else: else:
try: try:
other_journal_txt = sys.stdin.read() other_journal_txt = util.py23_read()
except KeyboardInterrupt: except KeyboardInterrupt:
util.prompt("[Entries NOT imported into journal.]") util.prompt("[Entries NOT imported into journal.]")
sys.exit(0) sys.exit(0)