summaryrefslogtreecommitdiff
path: root/astroid/scoped_nodes.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-08-22 20:13:50 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2015-08-22 20:13:50 +0300
commit64b3c326b012ad1237a1ffa174ba4c8f770775b9 (patch)
tree7f08888ab1436ed4618d64d82554445f869c25ef /astroid/scoped_nodes.py
parentc943c1d98f2c9b38f6319fb17d75af34bdf256c2 (diff)
downloadastroid-git-64b3c326b012ad1237a1ffa174ba4c8f770775b9.tar.gz
Use the old display types, since they are used by pylint to generate error messages.
Diffstat (limited to 'astroid/scoped_nodes.py')
-rw-r--r--astroid/scoped_nodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/scoped_nodes.py b/astroid/scoped_nodes.py
index 7db8e1d4..773a6b9a 100644
--- a/astroid/scoped_nodes.py
+++ b/astroid/scoped_nodes.py
@@ -659,7 +659,7 @@ class Lambda(LocalsDictNodeNG, mixins.FilterStmtsMixin):
def display_type(self):
if 'method' in self.type:
return 'Method'
- return 'FunctionDef'
+ return 'Function'
def callable(self):
return True
@@ -1138,7 +1138,7 @@ class ClassDef(bases.Statement, LocalsDictNodeNG, mixins.FilterStmtsMixin):
return '%s.classobj' % BUILTINS
def display_type(self):
- return 'ClassDef'
+ return 'Class'
def callable(self):
return True