Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions gffutils/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,12 @@ def seqids(self):
for (i,) in c:
yield i

def __enter__(self):
return self

def __exit__(self, exc_type, exc_value, traceback):
self.conn.close()

# Recycle the docs for _relation so they stay consistent between parents()
# and children()
children.__doc__ = children.__doc__.format(_relation_docstring=_relation.__doc__)
Expand Down