summaryrefslogtreecommitdiff
path: root/pylint/checkers/python3.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-04-18 08:12:47 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-04-18 08:12:47 +0200
commit50e28f28a3785cc9fa6cdb6efec1daf7f38f09ed (patch)
tree45097094a248f76a5e5b94b9835cbe0ddd5d8f36 /pylint/checkers/python3.py
parenta36bab11c57cb0eae1c17fcbea3a9c4c943921b6 (diff)
downloadpylint-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.py12
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