Skip to content

Commit

Permalink
txt2ctf.py: flush and close output
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Reznichenko committed Jul 10, 2017
1 parent 4c15653 commit f3120ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Scripts/txt2ctf.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def _convertSequence(dictionaries, streams, sequenceId, output, unk, annotated):
output = open(args.output, "w")

convert([open(d, encoding="utf-8") for d in args.map], inputs, output, args.unk, args.annotated == "True")

output.flush()
if (output != sys.stdout):
output.close()

#####################################################################################################
# Tests
Expand Down

0 comments on commit f3120ec

Please sign in to comment.