Commit ef6d4273 authored by Jeremy Hylton's avatar Jeremy Hylton

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

parent cb06b479
...@@ -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