def METHOD_NAME(self, filename, encoding=None, debug=False):
    """Parse a file and return the syntax tree."""
    stream = codecs.open(filename, "r", encoding)
    try:
        return self.parse_stream(stream, debug)
    finally:
        stream.close()