

def __init__(self, engine, maker, apply_global, synchronous_reader):
    self._reader_engine = self._writer_engine = engine
    self._reader_maker = self._writer_maker = maker
    self._started = True
    self._legacy_facade = None
    self.synchronous_reader = synchronous_reader
    self._facade_cfg = _context_manager._factory._facade_cfg
    self._transaction_ctx_cfg = _context_manager._factory._transaction_ctx_cfg
    if apply_global:
        self.existing_factory = _context_manager._factory
        _context_manager._root_factory = apply_global

dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/enginefacade.py _TestTransactionFactory.__init__/VarMisuse@93/152 `self`->`apply_global`