

def pattern_matches(self, path):
    'Return true if the given path matches the watch pattern'
    return (fnmatch.fnmatch(path, self.pattern) or (path == self.pattern))

dataset/ETHPy150Open borntyping/spotter/spotter/watches.py Watch.pattern_matches/original