summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-06-11 18:29:13 (GMT)
committerGitHub <noreply@github.com>2020-06-11 18:29:13 (GMT)
commit3782497cc22e70b41e32ac09cb06d3948074d8a7 (patch)
tree7d785de2fb0f083d1dffe828604096d5bdc50291 /Grammar
parentdc40105c88b968a50c3458e10e1d732e957ef0a3 (diff)
downloadcpython-3782497cc22e70b41e32ac09cb06d3948074d8a7.zip
cpython-3782497cc22e70b41e32ac09cb06d3948074d8a7.tar.gz
cpython-3782497cc22e70b41e32ac09cb06d3948074d8a7.tar.bz2
[3.9] bpo-40939: Fix test_keyword for the old parser (GH-20814)
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/python.gram2
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram
index 2c350ef..1510683 100644
--- a/Grammar/python.gram
+++ b/Grammar/python.gram
@@ -477,7 +477,7 @@ atom[expr_ty]:
| 'True' { _Py_Constant(Py_True, NULL, EXTRA) }
| 'False' { _Py_Constant(Py_False, NULL, EXTRA) }
| 'None' { _Py_Constant(Py_None, NULL, EXTRA) }
- | '__new_parser__' { RAISE_SYNTAX_ERROR("You found it!") }
+ | '__peg_parser__' { RAISE_SYNTAX_ERROR("You found it!") }
| &STRING strings
| NUMBER
| &'(' (tuple | group | genexp)