diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2018-09-15 10:22:40 +0200 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-09-15 10:22:40 +0200 |
| commit | 2810cca9c2f233fbb4b4c7ecba4af1b70d151ca1 (patch) | |
| tree | d582013b879c64bfc0701619c2bc481c46e8c4d1 /pylint/checkers/utils.py | |
| parent | 926db51e55901db856fa7b55265428fd9a448f6a (diff) | |
| download | pylint-git-2810cca9c2f233fbb4b4c7ecba4af1b70d151ca1.tar.gz | |
Move is_raising to where it is used and correct its annotation
Diffstat (limited to 'pylint/checkers/utils.py')
| -rw-r--r-- | pylint/checkers/utils.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py index b98941205..4c163df58 100644 --- a/pylint/checkers/utils.py +++ b/pylint/checkers/utils.py @@ -185,12 +185,6 @@ def is_error(node: astroid.node_classes.NodeNG) -> bool: return True return False -def is_raising(body: astroid.node_classes.NodeNG) -> bool: - """return true if the given statement node raise an exception""" - for node in body: - if isinstance(node, astroid.Raise): - return True - return False builtins = builtins.__dict__.copy() # type: ignore SPECIAL_BUILTINS = ('__builtins__',) # '__path__', '__file__') |
