summaryrefslogtreecommitdiff
path: root/pylint/checkers/utils.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-06-20 14:47:47 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-06-20 14:47:47 +0300
commit7d3758fccc9bc31f70900451d8a14103bf41f702 (patch)
tree748d611c89a2c072721f763c28af0ec889430709 /pylint/checkers/utils.py
parentdf244c42ca9ba3b54374fbd0b1ae415bd693eb15 (diff)
downloadpylint-7d3758fccc9bc31f70900451d8a14103bf41f702.tar.gz
pylint.checkers.utils.excepts_import_error was removed.
Diffstat (limited to 'pylint/checkers/utils.py')
-rw-r--r--pylint/checkers/utils.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index 9416785..583d341 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -593,17 +593,6 @@ def unimplemented_abstract_methods(node, is_abstract_cb=None):
del visited[obj.name]
return visited
-def excepts_import_error(node):
- """
- Check if the try-except node has an ImportError handler.
- Return True if an ImportError handler was infered, False otherwise.
- """
- if not isinstance(node, astroid.TryExcept):
- return
- # pylint: disable=bad-builtin
- func = functools.partial(error_of_type, error_type=ImportError)
- return any(map(func, node.handlers))
-
def node_ignores_exception(node, exception):
"""Check if the node is in a TryExcept which handles the given exception.