From 684068e0d72254c5e45b517d36a943f847e86ad1 Mon Sep 17 00:00:00 2001 From: Sylvain Th?nault Date: Mon, 11 Oct 2010 19:05:08 +0200 Subject: force source to true when explicitly asked to analyze a file --- lint.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lint.py') diff --git a/lint.py b/lint.py index 4eda5b8..afba2fc 100644 --- a/lint.py +++ b/lint.py @@ -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): -- cgit v1.2.1