summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2009-03-17 19:40:46 +0100
committerSylvain <syt@logilab.fr>2009-03-17 19:40:46 +0100
commit0c879ff202b13050ccb070bd16c2f407df532f01 (patch)
treeef193689affdeddd6f8ca2d8dce6351710e66cbe /lint.py
parent79d28d09c7e16129aa47fc63574de3e5a578c7f0 (diff)
downloadpylint-0c879ff202b13050ccb070bd16c2f407df532f01.tar.gz
fix import for new astng organisation
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lint.py b/lint.py
index 5f571e5..7594252 100644
--- a/lint.py
+++ b/lint.py
@@ -43,7 +43,7 @@ from logilab.common.fileutils import norm_open
from logilab.common.ureports import Table, Text
from logilab.common.__pkginfo__ import version as common_version
-from logilab.astng import ASTNGManager, nodes
+from logilab.astng import MANAGER, nodes
from logilab.astng.__pkginfo__ import version as astng_version
from pylint.utils import UnknownMessage, MessagesHandlerMixIn, \
@@ -247,7 +247,6 @@ This is used by the global evaluation report (R0004).'}),
#
# checkers / reporter / astng manager
self.reporter = None
- self.manager = ASTNGManager()
self._checkers = {}
self._ignore_file = False
# visit variables
@@ -319,7 +318,7 @@ This is used by the global evaluation report (R0004).'}),
else :
meth(value)
elif opt_name == 'cache-size':
- self.manager.set_cache_size(int(value))
+ MANAGER.set_cache_size(int(value))
elif opt_name == 'output-format':
self.set_reporter(REPORTER_OPT_MAP[value.lower()]())
elif opt_name in ('enable-checker', 'disable-checker'):
@@ -540,7 +539,7 @@ This is used by the global evaluation report (R0004).'}),
def get_astng(self, filepath, modname):
"""return a astng representation for a module"""
try:
- return self.manager.astng_from_file(filepath, modname)
+ return MANAGER.astng_from_file(filepath, modname)
except SyntaxError, ex:
self.add_message('E0001', line=ex.lineno, args=ex.msg)
except KeyboardInterrupt: