def _assert_matching_drivers():
 if (CONF.database.slave_connection == ''):
  return
 normal = sqlalchemy.engine.url.make_url(CONF.database.connection)
 slave = sqlalchemy.engine.url.make_url(CONF.database.slave_connection)
 assert (normal.drivername == slave.drivername)

def _assert_matching_drivers ( ) : if ( CONF . database . slave_connection == '' ) : return normal = sqlalchemy . engine . url . make_url ( CONF . database . connection ) slave = sqlalchemy . engine . url . make_url ( CONF . database . slave_connection ) assert ( normal . drivername == slave . drivername )
make sure slave handle and normal handle have the same driver .