Commit 0372e3c9 authored by Jeremy Hylton's avatar Jeremy Hylton

Add optional subtransaction arguments to top-level commit() and abort().

parent 9fb66185
...@@ -23,11 +23,11 @@ def get(): ...@@ -23,11 +23,11 @@ def get():
def begin(): def begin():
return manager.begin() return manager.begin()
def commit(): def commit(sub=False):
manager.get().commit() manager.get().commit(sub)
def abort(): def abort(sub=False):
manager.get().abort() manager.get().abort(sub)
# XXX Issue deprecation warning if this variant is used? # XXX 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