[Biopython-dev] Patch for GenBank.Iterator
Andreas Kuntzagk
andreas.kuntzagk at mdc-berlin.de
Mon Jul 28 07:24:14 EDT 2003
to handle empty files (current version hangs in an indefinite loop)
There are probably other places whith the same problem
RCS file: /home/repository/biopython/biopython/Bio/GenBank/__init__.py,v
retrieving revision 1.41
diff -r1.41 __init__.py
126c126
< while _handle.peekline().find("LOCUS") < 0:
---
> while _handle.peekline() and _handle.peekline().find("LOCUS")
< 0:
More information about the Biopython-dev
mailing list