diff options
Diffstat (limited to 'Lib/lib2to3/pygram.py')
-rw-r--r-- | Lib/lib2to3/pygram.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/lib2to3/pygram.py b/Lib/lib2to3/pygram.py index 49d5cefbb9..d598317edb 100644 --- a/Lib/lib2to3/pygram.py +++ b/Lib/lib2to3/pygram.py @@ -28,4 +28,8 @@ class Symbols(object): python_grammar = driver.load_grammar(_GRAMMAR_FILE) + python_symbols = Symbols(python_grammar) + +python_grammar_no_print_statement = python_grammar.copy() +del python_grammar_no_print_statement.keywords["print"] |