Skip to content

Commit

Permalink
Make retrieve_pdb_file() work on Python 3.
Browse files Browse the repository at this point in the history
This applies the fix outlined by Michiel de Hoon in Redmine #3382.
  • Loading branch information
cbrueffer committed Dec 13, 2012
1 parent 7ed06de commit f916e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bio/PDB/PDBList.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def retrieve_pdb_file(self,pdb_code, obsolete=0, compression=None,
# Uncompress the file
gz = gzip.open(filename, 'rb')
out = open(final_file, 'wb')
out.writelines(gz.read())
out.writelines(gz)
gz.close()
out.close()
os.remove(filename)
Expand Down

0 comments on commit f916e14

Please sign in to comment.