(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."""
        with io.open(filename, "r", encoding=encoding) as stream:
            return self.parse_stream(stream, debug)
def parse_file ( self , filename , encoding = None , debug = False ) : with io . open ( filename , "r" , encoding = encoding ) as stream : return self . parse_stream ( stream , debug )