summaryrefslogtreecommitdiff
path: root/checkers
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2014-07-24 23:53:44 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2014-07-24 23:53:44 +0200
commit2925504f4c4ffc3ec980eb7b4467284fe8653006 (patch)
tree68efdbb8fca057ef5ef9078229d3613ea87ead14 /checkers
parent109090dfa67f1a7a35db5002346795bb717bf7d0 (diff)
downloadpylint-2925504f4c4ffc3ec980eb7b4467284fe8653006.tar.gz
[refactor] move handling of file specific state to its own FileState class (mostly message states)
Diffstat (limited to 'checkers')
-rw-r--r--checkers/imports.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkers/imports.py b/checkers/imports.py
index 7194134..9ae3935 100644
--- a/checkers/imports.py
+++ b/checkers/imports.py
@@ -372,7 +372,7 @@ given file (report RP0402 must not be disabled)'}
cache them
"""
if self.__ext_dep_info is None:
- package = self.linter.base_name
+ package = self.linter.current_name
self.__ext_dep_info = result = {}
for importee, importers in self.stats['dependencies'].iteritems():
if not importee.startswith(package):
@@ -384,7 +384,7 @@ given file (report RP0402 must not be disabled)'}
cache them
"""
if self.__int_dep_info is None:
- package = self.linter.base_name
+ package = self.linter.current_name
self.__int_dep_info = result = {}
for importee, importers in self.stats['dependencies'].iteritems():
if importee.startswith(package):