summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/Grammar.txt
diff options
context:
space:
mode:
authorZsolt Dollenstein <zsol.zsol@gmail.com>2019-10-24 06:19:07 (GMT)
committerMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2019-10-24 06:19:07 (GMT)
commit96b06aefe23521b61e4e9cdd44f5d30b00c7eb95 (patch)
treecb3193c53116b83c483afae524b4c1015bf4e2af /Lib/lib2to3/Grammar.txt
parent3bbb6db545eff73ba4031bd9b8f2ef71b84c906e (diff)
downloadcpython-96b06aefe23521b61e4e9cdd44f5d30b00c7eb95.zip
cpython-96b06aefe23521b61e4e9cdd44f5d30b00c7eb95.tar.gz
cpython-96b06aefe23521b61e4e9cdd44f5d30b00c7eb95.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
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]