Commit 4495086f by David W Wright Committed by GitHub

Pass file object and not lines read to reading functions for PDBx format files. (#221)

parent 1d330658
...@@ -242,7 +242,7 @@ class PDBFixer(object): ...@@ -242,7 +242,7 @@ class PDBFixer(object):
self.source = filename self.source = filename
file = open(filename, 'r') file = open(filename, 'r')
if _guessFileFormat(file, filename) == 'pdbx': if _guessFileFormat(file, filename) == 'pdbx':
self._initializeFromPDBx(file.read()) self._initializeFromPDBx(file)
else: else:
self._initializeFromPDB(file) self._initializeFromPDB(file)
file.close() file.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment