diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-07-21 12:55:57 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-07-21 12:55:57 +0000 |
commit | 1e588516e6d6823d801034b79043fb511c9f21ab (patch) | |
tree | 01ae23cbedb083e8d72c73a9328ba4aade8b0bc8 /Lib/lib2to3/pygram.py | |
parent | 59c965e614632b2979689ee94b1520bee3d0149a (diff) | |
download | cpython-1e588516e6d6823d801034b79043fb511c9f21ab.tar.gz |
merge 2to3 improvments
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"] |