summaryrefslogtreecommitdiff
path: root/checkers/typecheck.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2009-11-25 14:38:30 +0100
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2009-11-25 14:38:30 +0100
commit4a6140467dbc6e88a10884476f39eaa8218edfef (patch)
tree6620bd69541aff676f59b0c3d787a99e0e6c72a7 /checkers/typecheck.py
parent626ced0d14ffb87d00e21cb30ea0cb49d24be44f (diff)
downloadpylint-4a6140467dbc6e88a10884476f39eaa8218edfef.tar.gz
use display_type defined as an astng method
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 ab04843..49e595d 100644
--- a/checkers/typecheck.py
+++ b/checkers/typecheck.py
@@ -25,7 +25,7 @@ from logilab.astng.infutils import YES, Instance
from pylint.interfaces import IASTNGChecker
from pylint.checkers import BaseChecker
-from pylint.checkers.utils import safe_infer, is_super, display_type
+from pylint.checkers.utils import safe_infer, is_super
MSGS = {
'E1101': ('%s %r has no %r member',
@@ -187,7 +187,7 @@ accessed.'}
else:
msgid = 'E1101'
self.add_message(msgid, node=node,
- args=(display_type(owner), name,
+ args=(owner.display_type(), name,
node.attrname))