summaryrefslogtreecommitdiffstats
path: root/Grammar/python.gram
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-06-11 16:09:21 (GMT)
committerGitHub <noreply@github.com>2020-06-11 16:09:21 (GMT)
commitbcd7deed9118e365c1225de2a2e1a81bf988c6ab (patch)
treede71fff4f10f86dc1fa46d5ca590fbd06dfb1a75 /Grammar/python.gram
parent10e6506aa8261aacc89b49e629ae1c927fa5151c (diff)
downloadcpython-bcd7deed9118e365c1225de2a2e1a81bf988c6ab.zip
cpython-bcd7deed9118e365c1225de2a2e1a81bf988c6ab.tar.gz
cpython-bcd7deed9118e365c1225de2a2e1a81bf988c6ab.tar.bz2
bpo-40939: Remove PEG parser easter egg (__new_parser__) (#20802)
It no longer serves a purpose (there's only one parser) and having "new" in any name will eventually look odd. Also, it impinges on a potential sub-namespace, `__new_...__`.
Diffstat (limited to 'Grammar/python.gram')
-rw-r--r--Grammar/python.gram1
1 files changed, 0 insertions, 1 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram
index 2c350ef..745c14e 100644
--- a/Grammar/python.gram
+++ b/Grammar/python.gram
@@ -477,7 +477,6 @@ 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!") }
| &STRING strings
| NUMBER
| &'(' (tuple | group | genexp)