diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-10-11 19:05:08 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-10-11 19:05:08 +0200 |
commit | 684068e0d72254c5e45b517d36a943f847e86ad1 (patch) | |
tree | b15fc664fb3918a20e0fe8ebfacd0c1ecffd352e /lint.py | |
parent | be36762b622cbe6b4b501c4fdd72d5e39852a0d6 (diff) | |
download | pylint-684068e0d72254c5e45b517d36a943f847e86ad1.tar.gz |
force source to true when explicitly asked to analyze a file
Diffstat (limited to 'lint.py')
-rw-r--r-- | lint.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -531,15 +531,14 @@ This is used by the global evaluation report (R0004).'}), def get_astng(self, filepath, modname): """return a astng representation for a module""" try: - return MANAGER.astng_from_file(filepath, modname) + return MANAGER.astng_from_file(filepath, modname, source=True) except SyntaxError, ex: self.add_message('E0001', line=ex.lineno, args=ex.msg) except KeyboardInterrupt: raise except Exception, ex: - #if __debug__: - # import traceback - # traceback.print_exc() + # import traceback + # traceback.print_exc() self.add_message('F0002', args=(ex.__class__, ex)) def check_astng_module(self, astng, walker, rawcheckers): |