Commit bfaf25f0 authored by Jim Fulton's avatar Jim Fulton

Changed to use methods of a threaded manager directly, rather than

through wrapper functions.
parent 7c191b8b
...@@ -20,18 +20,10 @@ from transaction._transaction import Transaction ...@@ -20,18 +20,10 @@ from transaction._transaction import Transaction
from transaction._manager import TransactionManager, ThreadTransactionManager from transaction._manager import TransactionManager, ThreadTransactionManager
manager = ThreadTransactionManager() manager = ThreadTransactionManager()
get = manager.get
def get(): begin = manager.begin
return manager.get() commit = manager.commit
abort = manager.abort
def begin():
return manager.begin()
def commit(sub=False):
manager.get().commit(sub)
def abort(sub=False):
manager.get().abort(sub)
# TODO: Issue deprecation warning if this variant is used? # TODO: Issue deprecation warning if this variant is used?
get_transaction = get get_transaction = get
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment