diff options
author | hippo91 <guillaume.peillex@gmail.com> | 2017-09-26 17:03:42 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-09-26 17:03:42 +0200 |
commit | 56a6723f96dddd1e70e668d808e8446fd53b841f (patch) | |
tree | cbead24fb86338441114e4cdc9245ac540a8d10c /pylint/checkers/python3.py | |
parent | 8dd70cb76439d72ea02ade02ae0dfa028a46619c (diff) | |
download | pylint-git-56a6723f96dddd1e70e668d808e8446fd53b841f.tar.gz |
Adding a check for ``inconsistent-return-statements`` inside function or methods. (#1641)
Close #1267
Diffstat (limited to 'pylint/checkers/python3.py')
-rw-r--r-- | pylint/checkers/python3.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pylint/checkers/python3.py b/pylint/checkers/python3.py index dfa67a79a..fabcb7e48 100644 --- a/pylint/checkers/python3.py +++ b/pylint/checkers/python3.py @@ -36,6 +36,7 @@ def _is_old_octal(literal): except ValueError: return False return True + return None def _check_dict_node(node): @@ -892,6 +893,7 @@ class Python3Checker(checkers.BaseChecker): if isinstance(value, str): self.add_message('raising-string', node=node) return True + return None class Python3TokenChecker(checkers.BaseTokenChecker): |