diff options
author | Sylvain <syt@logilab.fr> | 2009-03-17 19:40:46 +0100 |
---|---|---|
committer | Sylvain <syt@logilab.fr> | 2009-03-17 19:40:46 +0100 |
commit | 0c879ff202b13050ccb070bd16c2f407df532f01 (patch) | |
tree | ef193689affdeddd6f8ca2d8dce6351710e66cbe /lint.py | |
parent | 79d28d09c7e16129aa47fc63574de3e5a578c7f0 (diff) | |
download | pylint-0c879ff202b13050ccb070bd16c2f407df532f01.tar.gz |
fix import for new astng organisation
Diffstat (limited to 'lint.py')
-rw-r--r-- | lint.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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: |