diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-10 07:47:55 -0400 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-10 07:47:55 -0400 |
commit | f495279daed8a101e52c22963892c257a4d83662 (patch) | |
tree | 872134e14900a06f0e3756b391b21cde9d1c5e4f | |
parent | 69c8aa6778561ec1198b90625b3533cb7a1c7353 (diff) | |
download | pylint-git-f495279daed8a101e52c22963892c257a4d83662.tar.gz |
No need to check for the traceback for old-raise-syntax in its 3-tuple form
-rw-r--r-- | pylint/checkers/python3.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pylint/checkers/python3.py b/pylint/checkers/python3.py index c7375a64c..3baac4ae2 100644 --- a/pylint/checkers/python3.py +++ b/pylint/checkers/python3.py @@ -859,8 +859,7 @@ class Python3Checker(checkers.BaseChecker): strings or old-raise-syntax. """ if (node.exc is not None and - node.inst is not None and - node.tback is None): + node.inst is not None): self.add_message('old-raise-syntax', node=node) # Ignore empty raise. |