X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f5cc3e35562c3b0b2d8efcbfdb326a2360fff976..42519f8b320103d903d880b4e0733bc3b08fe015:/blib2to3/pygram.py?ds=sidebyside diff --git a/blib2to3/pygram.py b/blib2to3/pygram.py index c4ff9d1..bf55ab4 100644 --- a/blib2to3/pygram.py +++ b/blib2to3/pygram.py @@ -36,5 +36,12 @@ python_symbols = Symbols(python_grammar) python_grammar_no_print_statement = python_grammar.copy() del python_grammar_no_print_statement.keywords["print"] +python_grammar_no_exec_statement = python_grammar.copy() +del python_grammar_no_exec_statement.keywords["exec"] + +python_grammar_no_print_statement_no_exec_statement = python_grammar.copy() +del python_grammar_no_print_statement_no_exec_statement.keywords["print"] +del python_grammar_no_print_statement_no_exec_statement.keywords["exec"] + pattern_grammar = driver.load_packaged_grammar("blib2to3", _PATTERN_GRAMMAR_FILE) pattern_symbols = Symbols(pattern_grammar)