Skip to content

Commit

Permalink
open gzipped files with the TextIOWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
meren committed Nov 3, 2018
1 parent 7f1acf9 commit 3c1d131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IlluminaUtils/lib/fastalib.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, fasta_file_path, lazy_init=True, unique=False, allow_mixed_ca
self.unique_next_hash = 0

if self.compressed:
self.file_pointer = gzip.open(self.fasta_file_path)
self.file_pointer = io.TextIOWrapper(gzip.open(self.fasta_file_path, 'rb'))
else:
self.file_pointer = io.open(self.fasta_file_path, 'rU', newline='')

Expand Down

0 comments on commit 3c1d131

Please sign in to comment.