summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/Grammar.txt
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2019-10-24 06:37:21 (GMT)
committerGitHub <noreply@github.com>2019-10-24 06:37:21 (GMT)
commitd04661f9ca4a082a2dd9de52df687600d574407e (patch)
treecfee9780c702c2d3235e8080c6e8e698df30df3b /Lib/lib2to3/Grammar.txt
parentd8fc9c843e1e87460c4d3765dc9b5d8a25eb565a (diff)
downloadcpython-d04661f9ca4a082a2dd9de52df687600d574407e.zip
cpython-d04661f9ca4a082a2dd9de52df687600d574407e.tar.gz
cpython-d04661f9ca4a082a2dd9de52df687600d574407e.tar.bz2
bpo-33348: parse expressions after * and ** in lib2to3 (GH-6586)
These are valid even in python 2.7 https://bugs.python.org/issue33348 Automerge-Triggered-By: @gpshead (cherry picked from commit 96b06aefe23521b61e4e9cdd44f5d30b00c7eb95) Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
Diffstat (limited to 'Lib/lib2to3/Grammar.txt')
-rw-r--r--Lib/lib2to3/Grammar.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib2to3/Grammar.txt b/Lib/lib2to3/Grammar.txt
index a7ddad3..68b7386 100644
--- a/Lib/lib2to3/Grammar.txt
+++ b/Lib/lib2to3/Grammar.txt
@@ -138,8 +138,8 @@ arglist: argument (',' argument)* [',']
# that precede iterable unpackings are blocked; etc.
argument: ( test [comp_for] |
test '=' test |
- '**' expr |
- star_expr )
+ '**' test |
+ '*' test )
comp_iter: comp_for | comp_if
comp_for: [ASYNC] 'for' exprlist 'in' testlist_safe [comp_iter]