Fixed some index bugs.
[didex.git] / didex / lib.py
1 class closable(object):
2     def __enter__(self):
3         return self
4     def __exit__(self, *excinfo):
5         self.close()
6         return False