

def IsGoodTag(prefixes, tag):
    'Decide if a string is a tag\n\n  @param prefixes: set of prefixes that would indicate\n      the tag being suitable\n  @param tag: the tag in question\n\n  '
    for prefix in prefixes:
        if prefixes.startswith(prefix):
            return True
    return False

dataset/ETHPy150Open ganeti/ganeti/lib/utils/tags.py IsGoodTag/VarMisuse@22/94 `tag`->`prefixes`