nested classes may have caused problems

This commit is contained in:
David Halter
2012-07-17 10:31:53 +02:00
parent 2feef20dc5
commit 6e8510b2bd
2 changed files with 24 additions and 0 deletions

View File

@@ -163,6 +163,8 @@ class Instance(Executable):
# This loop adds the names of the self object, copies them and removes
# the self.
for sub in self.base.subscopes:
if isinstance(sub, parsing.Class):
continue
# Get the self name, if there's one.
self_name = self.get_func_self_name(sub)
if self_name: