summaryrefslogtreecommitdiff
path: root/checkers/typecheck.py
diff options
context:
space:
mode:
authorsylvain thenault <sylvain.thenault@logilab.fr>2009-03-13 17:49:33 +0100
committersylvain thenault <sylvain.thenault@logilab.fr>2009-03-13 17:49:33 +0100
commitfa2beab3113e1a52a52ab3815ab9844d177209fc (patch)
treeca5b0aadf1b4c06540d8bf27381aacebe4eb6756 /checkers/typecheck.py
parent938e536664b5e642ebde257ad60bc4543e73c5b5 (diff)
downloadpylint-fa2beab3113e1a52a52ab3815ab9844d177209fc.tar.gz
None is now a Const
Diffstat (limited to 'checkers/typecheck.py')
-rw-r--r--checkers/typecheck.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkers/typecheck.py b/checkers/typecheck.py
index 0d47d2a..545acf7 100644
--- a/checkers/typecheck.py
+++ b/checkers/typecheck.py
@@ -182,8 +182,8 @@ accessed.'}
self.add_message('E1111', node=node)
else:
for rnode in returns:
- if not (isinstance(rnode.value, astng.Name)
- and rnode.value.name == 'None'):
+ if not (isinstance(rnode.value, astng.Const)
+ and rnode.value.value is None):
break
else:
self.add_message('W1111', node=node)