summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2013-07-24 18:24:14 +0300
committercpopa <devnull@localhost>2013-07-24 18:24:14 +0300
commite14a8e75dd04c1b1b2051fa32110b315d9869b23 (patch)
tree8464fa77c82860e84dd10dfd8baa89deb424261c
parent2e19dcf11cfd9f080d45d8b540369d0d8f26d9d1 (diff)
downloadastroid-e14a8e75dd04c1b1b2051fa32110b315d9869b23.tar.gz
Return a string depicting the metaclass, not the metaclass itself.
-rw-r--r--scoped_nodes.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scoped_nodes.py b/scoped_nodes.py
index f9df97d..3f6e55a 100644
--- a/scoped_nodes.py
+++ b/scoped_nodes.py
@@ -1002,5 +1002,8 @@ class Class(Statement, LocalsDictNodeNG, FilterStmtsMixin):
except NotFoundError:
return
- return meta.infered()[0]
+ # XXX: We could return the actual class instance, not the string
+ # representing its name, but I don't know how to handle this
+ # with Py3's metaclass keyword..
+ return meta.infered()[0].name
\ No newline at end of file