Skip to content

Commit

Permalink
separately delegate __enter__
Browse files Browse the repository at this point in the history
  • Loading branch information
jimfulton committed Oct 20, 2018
1 parent 3d06a6d commit ef966bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transaction/_manager.py
Expand Up @@ -245,7 +245,8 @@ def begin(self):
def get(self):
return self.manager.get()

__enter__ = get
def __enter__(self):
return self.manager.__enter__()

def commit(self):
return self.manager.commit()
Expand Down

0 comments on commit ef966bb

Please sign in to comment.