summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-20 04:20:59 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-03-20 04:20:59 (GMT)
commitc6dc12484bbe862364f914e7f1f425eece7cc66b (patch)
treef14734b33592ed669e7b7cd31e56ebcf03e81e5d /Grammar
parent95dc8b5761afdec787fe556a6d86ffc402dac3f3 (diff)
downloadcpython-c6dc12484bbe862364f914e7f1f425eece7cc66b.zip
cpython-c6dc12484bbe862364f914e7f1f425eece7cc66b.tar.gz
cpython-c6dc12484bbe862364f914e7f1f425eece7cc66b.tar.bz2
fix compiler warning
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Grammar3
1 files changed, 2 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar
index d7aaffd..2a361ec 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -24,7 +24,8 @@ decorators: decorator+
decorated: decorators (classdef | funcdef)
funcdef: 'def' NAME parameters ['->' test] ':' suite
parameters: '(' [typedargslist] ')'
-typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [','
+typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])*
+ [',' '/' (',' tfpdef ['=' test])*] [','
['*' [tfpdef] (',' tfpdef ['=' test])* [',' '**' tfpdef] | '**' tfpdef]]
| '*' [tfpdef] (',' tfpdef ['=' test])* [',' '**' tfpdef] | '**' tfpdef)
tfpdef: NAME [':' test]