Remove note about print as absolute import. This is probably not going to happen anymore, Python 2 is pretty much end-of-life

This commit is contained in:
Dave Halter
2018-06-28 01:01:46 +02:00
parent 52fc8fc569
commit 8e118c913c

View File

@@ -72,16 +72,6 @@ class Parser(BaseParser):
self._omit_dedent_list = []
self._indent_counter = 0
# TODO do print absolute import detection here.
# try:
# del python_grammar_no_print_statement.keywords["print"]
# except KeyError:
# pass # Doesn't exist in the Python 3 grammar.
# if self.options["print_function"]:
# python_grammar = pygram.python_grammar_no_print_statement
# else:
def parse(self, tokens):
if self._error_recovery:
if self._start_nonterminal != 'file_input':