Skip to content

Commit

Permalink
Make Faidx.to_file flush writes to disk
Browse files Browse the repository at this point in the history
Closes #110
  • Loading branch information
mdshw5 authored Apr 18, 2017
1 parent 987dcbe commit 17069c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyfaidx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ def to_file(self, rname, start, end, seq):
n = m
m += line_len
self.file.write(seq[n:].encode())
self.file.flush()

def close(self):
self.__exit__()
Expand Down

0 comments on commit 17069c1

Please sign in to comment.