def matches(what, glob_patterns):
 return any((fnmatch.fnmatch(what, glob_pattern) for glob_pattern in glob_patterns))

def matches ( what , glob_patterns ) : return any ( ( fnmatch . fnmatch ( what , glob_pattern ) for glob_pattern in glob_patterns ) )
check for matches in both cdao and obo namespaces .