[Biopython-dev] Error in tutorial program (correction)
abc at palantir.chem.emory.edu
abc at palantir.chem.emory.edu
Fri Oct 18 10:33:12 EDT 2002
Oops.
Correction on that correction.
Ben
--- Bio/Fasta/__init__.py 2001/07/05 23:56:49 1.4
+++ Bio/Fasta/__init__.py 2002/10/17 18:03:52
@@ -211,15 +211,12 @@
def feed(self, handle, consumer):
"""feed(self, handle, consumer)
- Feed in FASTA data for scanning. handle is a file-like object
- containing FASTA data. consumer is a Consumer object that will
- receive events as the FASTA data is scanned.
+ Feed in FASTA data for scanning. handle is an instance of
+ File.UndoHandle containing FASTA data. consumer is a Consumer
+ object that will receive events as the FASTA data is scanned.
"""
- if isinstance(handle, File.UndoHandle):
- uhandle = handle
- else:
- uhandle = File.UndoHandle(handle)
+ assert isinstance(handle, File.UndoHandle)
if uhandle.peekline():
self._scan_record(uhandle, consumer)
More information about the Biopython-dev
mailing list