def __init__(self, conn, settings_table=None, associations_table=None,
                 nonces_table=None):
        self.conn = conn
        self.cur = None
        self._statement_cache = {}
        self._table_names = {
            'settings': settings_table or self.settings_table,
            'associations': associations_table or self.associations_table,
            'nonces': nonces_table or self.nonces_table,
            }
        self.max_nonce_age = 6 * 60 * 60 # Six hours, in seconds

        # DB API extension: search for "Connection Attributes .Error,
        # .ProgrammingError, etc." in
        # http://www.python.org/dev/peps/pep-0249/
        if (hasattr(self.conn, 'IntegrityError') and
            hasattr(self.conn, 'OperationalError')):
            self.exceptions = self.conn

        if not (hasattr(self.exceptions, 'IntegrityError') and
                hasattr(self.exceptions, 'OperationalError')):
            raise RuntimeError("Error using database connection module "
                               "(Maybe it can't be imported?)")
Tears down actual proxies.
dataset/ETHPy150Open CollabQ/CollabQ/openid/store/sqlstore.py/SQLStore.__init__--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/console/fake.py/FakeConsoleProxy.teardown_console