diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2018-04-18 08:12:47 +0200 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-04-18 08:12:47 +0200 |
| commit | 50e28f28a3785cc9fa6cdb6efec1daf7f38f09ed (patch) | |
| tree | 45097094a248f76a5e5b94b9835cbe0ddd5d8f36 /pylint/checkers/python3.py | |
| parent | a36bab11c57cb0eae1c17fcbea3a9c4c943921b6 (diff) | |
| download | pylint-git-50e28f28a3785cc9fa6cdb6efec1daf7f38f09ed.tar.gz | |
Rip lambda paremeter unpacking, we already have parameter-unpacking
Diffstat (limited to 'pylint/checkers/python3.py')
| -rw-r--r-- | pylint/checkers/python3.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/pylint/checkers/python3.py b/pylint/checkers/python3.py index 2c98303ad..1556bf0da 100644 --- a/pylint/checkers/python3.py +++ b/pylint/checkers/python3.py @@ -970,11 +970,6 @@ class Python3TokenChecker(checkers.BaseTokenChecker): 'Used when non-ascii bytes literals are found in a program. ' 'They are no longer supported in Python 3.', {'maxversion': (3, 0)}), - 'E1611': ('Drop invalid lambda parantheses', - 'lambda-parameter-parens', - 'Used when a lambda definition contains parantheses for the parameter ' - 'list. This is invalid syntax in Python 3.X.', - {'maxversion': (3, 0)}), 'E1612': ('Cannot raise on Python 3 using this raise form', 'invalid-raise-syntax', 'Used when an invalid raise construct that will not work on Python 3 was ' @@ -997,12 +992,7 @@ class Python3TokenChecker(checkers.BaseTokenChecker): self.add_message('non-ascii-bytes-literal', line=start[0]) if tok_type == tokenize.NAME: - if (token == 'lambda' - and idx < len(tokens) - and tokens[idx + 1][0] == tokenize.OP - and tokens[idx + 1][1] == '('): - self.add_message('lambda-parameter-parens', line=start[0]) - elif (token == 'raise' + if (token == 'raise' and idx < len(tokens) - 1 and tokens[idx + 1][0] == tokenize.NAME and tokens[idx + 2][0] == tokenize.OP |
