Skip to content

Commit

Permalink
Close handles in KEGG doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Apr 8, 2013
1 parent 23521fd commit 4cfe67b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Bio/KEGG/Compound/__init__.py
Expand Up @@ -144,6 +144,8 @@ def parse(handle):
C00348 Undecaprenyl phosphate C00348 Undecaprenyl phosphate
C00349 2-Methyl-3-oxopropanoate C00349 2-Methyl-3-oxopropanoate
C01386 NH2Mec C01386 NH2Mec
>>> handle.close()
""" """
record = Record() record = Record()
for line in handle: for line in handle:
Expand Down
2 changes: 2 additions & 0 deletions Bio/KEGG/Enzyme/__init__.py
Expand Up @@ -214,6 +214,8 @@ def parse(handle):
2.4.1.68 Glycoprotein 6-alpha-L-fucosyltransferase 2.4.1.68 Glycoprotein 6-alpha-L-fucosyltransferase
3.1.1.6 Acetylesterase 3.1.1.6 Acetylesterase
2.7.2.1 Acetate kinase 2.7.2.1 Acetate kinase
>>> handle.close()
""" """
record = Record() record = Record()
for line in handle: for line in handle:
Expand Down

0 comments on commit 4cfe67b

Please sign in to comment.