def fnmatchcase(name, pat):
 match = _compile_pattern(pat)
 return (match(name) is not None)

def fnmatchcase ( name , pat ) : match = _compile_pattern ( pat ) return ( match ( name ) is not None )
test whether filename matches pattern .