summaryrefslogtreecommitdiff
path: root/Grammar
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-19 23:20:59 -0500
committerBenjamin Peterson <benjamin@python.org>2013-03-19 23:20:59 -0500
commitc6dc12484bbe862364f914e7f1f425eece7cc66b (patch)
treef14734b33592ed669e7b7cd31e56ebcf03e81e5d /Grammar
parent95dc8b5761afdec787fe556a6d86ffc402dac3f3 (diff)
downloadcpython-git-c6dc12484bbe862364f914e7f1f425eece7cc66b.tar.gz
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 d7aaffd60e..2a361ece4e 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]