def get_database(uri, config=None):
    prefix = uri.split(':')[0]
    for entry_point in iter_entry_points(group='moai.database', name=prefix):
        dbclass = entry_point.load()
        try:
            return dbclass(uri, config)
        except TypeError:
            # ugly backwards compatibility hack
            return dbclass(uri)
    raise ValueError(prefix % 'No such database registered: %s')
dataset/ETHPy150Open infrae/moai/moai/database.py/get_database/swapped operands of `%`