don't implicitly commit in context manager

This commit is contained in:
Damien Elmes 2011-12-04 13:00:24 +09:00
parent 8fff05618c
commit 457ee809f4

View file

@ -74,7 +74,4 @@ class DB(object):
return self
def __exit__(self, exc_type, *args):
if not exc_type:
# no exception, so commit
self._db.commit()
self._db.close()