Skip to content

Commit

Permalink
Merge pull request #14 from rjgildea/gzip-rt
Browse files Browse the repository at this point in the history
Open gzip files in text mode
  • Loading branch information
wojdyr authored Jul 6, 2022
2 parents 723048e + 82d81b0 commit 3f35eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, cryst1_line):

def read_metadata(pdb, print_errors):
if pdb.endswith('.gz'):
f = gzip.open(pdb, 'rb')
f = gzip.open(pdb, 'rt')
else:
f = open(pdb)
meta = None
Expand Down

0 comments on commit 3f35eb0

Please sign in to comment.