def get_matches(self, word):
        """
        Get a list of filenames with match *word*.
        """
        matches = self.gen_matches(word)
        # defend this against bad user input for regular expression patterns
        try:
            matches = self.exclude_matches(matches)
        except Exception:
            sys.stderr.write(traceback.format_exc())
            return None
        else:
            if self.use_suffix:
                matches = [self.inflect(match) for match in matches]
            return list(matches)
def get_matches ( self , word ) : matches = self . gen_matches ( word ) try : matches = self . exclude_matches ( matches ) except Exception : sys . stderr . write ( traceback . format_exc ( ) ) return None else : if self . use_suffix : matches = [ self . inflect ( match ) for match in matches ] return list ( matches )
Get a list of filenames with match *word*.