Skip to content

Commit

Permalink
fix: import of deleted file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraymer committed Dec 25, 2020
1 parent dd51a81 commit bdc0b39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qifqif/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from qifqif import tags, qifile, config
from qifqif.ui import set_completer, complete_matches, colorize_match
from qifqif.terminal import TERM
from qifqif._version import __version__

ENCODING = "utf-8" if sys.stdin.encoding in (None, "ascii") else sys.stdin.encoding

Expand Down Expand Up @@ -328,7 +327,7 @@ def main(argv=None):
except EOFError: # exit on Ctrl + D: restore original tags
tags.save(args["config"], original_tags)
return 1
res = qifile.dump_to_buffer(transacs + transacs_orig[len(transacs) :])
res = qifile.dump_to_buffer(transacs + transacs_orig[len(transacs):])
if not args.get("dry-run"):
with io.open(args["dest"], "w", encoding="utf-8") as dest:
dest.write(res)
Expand Down

0 comments on commit bdc0b39

Please sign in to comment.