(self, filename, encoding=None, debug=False)
Parse a file and return the syntax tree.
Parse a file and return the syntax tree.
Parse a file and return the syntax tree .
def parse_file(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()
def parse_file ( self , filename , encoding = None , debug = False ) : stream = codecs . open ( filename , "r" , encoding ) try : return self . parse_stream ( stream , debug ) finally : stream . close ( )