Skip to content

Commit

Permalink
Close indexed file's handle to avoid ResourceWarning in doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Apr 8, 2013
1 parent 5822f83 commit 1f8bebb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Bio/SeqIO/SffIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
>>> record = reads["E3MFGYR02JHD4H"]
>>> print record.id, len(record), record.seq[:20]+"..."
E3MFGYR02JHD4H 292 AAAGACAAGTGGTATCAACG...
>>> reads.close()
You can also use the Bio.SeqIO.write() function with the "sff" format. Note
that this requires all the flow information etc, and thus is probably only
Expand Down

0 comments on commit 1f8bebb

Please sign in to comment.