diff options
author | 2017-05-04 15:06:14 +0200 | |
---|---|---|
committer | 2017-05-04 17:01:00 +0200 | |
commit | 52637bedbd0ca9157d39c012f027449d19d4e012 (patch) | |
tree | 6a890de83fb96ec960cb2928f1c3f23f516fa329 /src/main/java/com/google/devtools/build/lib/syntax/FunctionSignature.java | |
parent | 19a3363786f8b46534d1c86bceba0a63fd0dbf36 (diff) |
Add the flag --incompatible_keyword_only_syntax to forbid keyword-only syntax.
Keyword-only syntax is when a parameter happens after the `*` paramter, e.g.
def foo(a, *, b): pass
or:
def foo(a, *b, c): pass
The syntax is not compatible with Python 2 (it's supported only in Python 3),
and breaking tooling based on Python2.
RELNOTES:
Keyword-only syntax in a function definition is deprecated
(e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`) and will be removed in the future.
PiperOrigin-RevId: 155071704
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/syntax/FunctionSignature.java')
0 files changed, 0 insertions, 0 deletions