def apply_driver_hacks(self, app, info, options): SAExtension.apply_driver_hacks(self, app, info, options) if info.drivername == 'sqlite': connect_args = options.setdefault('connect_args', {}) if 'isolation_level' not in connect_args: # required to support savepoints/rollback without error. It disables # implicit BEGIN/COMMIT statements made by pysqlite (a COMMIT kills all # savepoints made). connect_args['isolation_level'] = None