diff options
author | cpopa <devnull@localhost> | 2013-07-24 18:24:14 +0300 |
---|---|---|
committer | cpopa <devnull@localhost> | 2013-07-24 18:24:14 +0300 |
commit | e14a8e75dd04c1b1b2051fa32110b315d9869b23 (patch) | |
tree | 8464fa77c82860e84dd10dfd8baa89deb424261c | |
parent | 2e19dcf11cfd9f080d45d8b540369d0d8f26d9d1 (diff) | |
download | astroid-e14a8e75dd04c1b1b2051fa32110b315d9869b23.tar.gz |
Return a string depicting the metaclass, not the metaclass itself.
-rw-r--r-- | scoped_nodes.py | 5 |
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 |