diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-03-20 04:20:59 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-03-20 04:20:59 (GMT) |
commit | c6dc12484bbe862364f914e7f1f425eece7cc66b (patch) | |
tree | f14734b33592ed669e7b7cd31e56ebcf03e81e5d /Grammar | |
parent | 95dc8b5761afdec787fe556a6d86ffc402dac3f3 (diff) | |
download | cpython-c6dc12484bbe862364f914e7f1f425eece7cc66b.zip cpython-c6dc12484bbe862364f914e7f1f425eece7cc66b.tar.gz cpython-c6dc12484bbe862364f914e7f1f425eece7cc66b.tar.bz2 |
fix compiler warning
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/Grammar | 3 |
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] |