diff options
author | 2019-05-20 23:27:10 +0300 | |
---|---|---|
committer | 2019-05-20 13:27:10 -0700 | |
commit | 4011d865d0572a3dd9988f2935cd835cc8fb792a (patch) | |
tree | 93ea5715395f54d250ba5b58e66fc951607e9c47 /Lib/lib2to3 | |
parent | bpo-36888: Add multiprocessing.parent_process() (GH-13247) (diff) | |
download | cpython-4011d865d0572a3dd9988f2935cd835cc8fb792a.tar.gz cpython-4011d865d0572a3dd9988f2935cd835cc8fb792a.tar.bz2 cpython-4011d865d0572a3dd9988f2935cd835cc8fb792a.zip |
bpo-23896: Add a grammar where exec isn't a stmt (#13272)
https://bugs.python.org/issue23896
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r-- | Lib/lib2to3/pygram.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/lib2to3/pygram.py b/Lib/lib2to3/pygram.py index 919624eb399..24d9db9217f 100644 --- a/Lib/lib2to3/pygram.py +++ b/Lib/lib2to3/pygram.py @@ -36,5 +36,8 @@ python_symbols = Symbols(python_grammar) python_grammar_no_print_statement = python_grammar.copy() del python_grammar_no_print_statement.keywords["print"] +python_grammar_no_print_and_exec_statement = python_grammar_no_print_statement.copy() +del python_grammar_no_print_and_exec_statement.keywords["exec"] + pattern_grammar = driver.load_packaged_grammar("lib2to3", _PATTERN_GRAMMAR_FILE) pattern_symbols = Symbols(pattern_grammar) |