summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-01-18 00:09:45 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2014-01-18 00:09:45 +0200
commitb6480921abd4b4763586d5bd3b324cb11c66046d (patch)
treed655e168e99ba14ffa53e8ef83a28152281c694e /checkers/variables.py
parent48814a564e51dae045fa100cd0ab1a5ca4d99f84 (diff)
downloadpylint-git-b6480921abd4b4763586d5bd3b324cb11c66046d.tar.gz
Use symbolic name.
--HG-- branch : all_false_positive
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index df049c6e1..09dc5afcc 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -220,7 +220,9 @@ builtins. Remember that you should avoid to define new builtins when possible.'
continue
if elt_name not in node.locals:
if not node.package:
- self.add_message('E0603', args=elt_name, node=elt)
+ self.add_message('undefined-all-variable',
+ args=elt_name,
+ node=elt)
else:
basename = os.path.splitext(node.file)[0]
if os.path.basename(basename) == '__init__':
@@ -228,7 +230,7 @@ builtins. Remember that you should avoid to define new builtins when possible.'
try:
load_module_from_name(name)
except ImportError:
- self.add_message('E0603',
+ self.add_message('undefined-all-variable',
args=elt_name,
node=elt)
except SyntaxError as exc: