def has_wildcard(pattern):
 match = wildcard_check_pattern.search(pattern)
 return (match is not None)

def has_wildcard ( pattern ) : match = wildcard_check_pattern . search ( pattern ) return ( match is not None )
checks whether pattern has any wildcards .