summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2010-10-11 19:05:08 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2010-10-11 19:05:08 +0200
commit684068e0d72254c5e45b517d36a943f847e86ad1 (patch)
treeb15fc664fb3918a20e0fe8ebfacd0c1ecffd352e /lint.py
parentbe36762b622cbe6b4b501c4fdd72d5e39852a0d6 (diff)
downloadpylint-684068e0d72254c5e45b517d36a943f847e86ad1.tar.gz
force source to true when explicitly asked to analyze a file
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 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):