

def __init__(self, root=None, mode=None, independent=False, savepoint=False, connection=False, replace_global_factory=None, _is_global_manager=False, allow_async=False):
    if (root is None):
        self._root = self
        self._root_factory = _TransactionFactory()
    else:
        self._root = root
    self._replace_global_factory = replace_global_factory
    self._is_global_manager = _is_global_manager
    self._mode = mode
    self._independent = independent
    self._savepoint = savepoint
    if (self._savepoint and self._independent):
        raise TypeError('setting savepoint and independent makes no sense.')
    self._connection = connection
    self._allow_async = allow_async

dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/enginefacade.py _TransactionContextManager.__init__/original