summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-01-03 10:00:00 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-01-03 10:00:00 +0200
commit4ad0921cb4e75f0fab120c845d73990075da152d (patch)
treebadab4ca72cf7d8cc6af18f38776dddffa1ae4da /lint.py
parent98f292601d5db900732842031db3b22366f799aa (diff)
downloadpylint-4ad0921cb4e75f0fab120c845d73990075da152d.tar.gz
Use the new Module.stream, since Module.file_stream is deprecated.
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])