summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/lint.py b/lint.py
index fa84ff1..657bcb8 100644
--- a/lint.py
+++ b/lint.py
@@ -861,16 +861,6 @@ class PyLinter(configuration.OptionsManagerMixIn,
rawcheckers, tokencheckers):
"""Check a module from its astroid representation."""
try:
- return self._check_astroid_module(ast_node, walker,
- rawcheckers, tokencheckers)
- finally:
- # Close the streams opened by the ast module.
- ast_node.close()
-
- def _check_astroid_module(self, ast_node, walker,
- rawcheckers, tokencheckers):
- # call raw checkers if possible
- try:
tokens = utils.tokenize_module(ast_node)
except tokenize.TokenError as ex:
self.add_message('syntax-error', line=ex.args[1][0], args=ex.args[0])