Permalink
Browse files

Close handles in KEGG doctests

  • Loading branch information...
1 parent 23521fd commit 4cfe67bd1a9accb2658852a69ef06d375c129217 @peterjc peterjc committed Apr 8, 2013
Showing with 4 additions and 0 deletions.
  1. +2 −0 Bio/KEGG/Compound/__init__.py
  2. +2 −0 Bio/KEGG/Enzyme/__init__.py
@@ -144,6 +144,8 @@ def parse(handle):
C00348 Undecaprenyl phosphate
C00349 2-Methyl-3-oxopropanoate
C01386 NH2Mec
+ >>> handle.close()
+
"""
record = Record()
for line in handle:
@@ -214,6 +214,8 @@ def parse(handle):
2.4.1.68 Glycoprotein 6-alpha-L-fucosyltransferase
3.1.1.6 Acetylesterase
2.7.2.1 Acetate kinase
+ >>> handle.close()
+
"""
record = Record()
for line in handle:

0 comments on commit 4cfe67b

Please sign in to comment.