fixed a problem that combined __getattr__ and usages

This commit is contained in:
David Halter committed 2013-08-13 15:39:26 +04:30
1 parent 2359ccbeb1
commit a895561f1a
2 files changed
+14

No files matched your search

+4
View File
@@ -434,6 +434,10 @@ class Script(object):
for d in set(definitions):
if isinstance(d, pr.Module):
names.append(api_classes.Usage(d, d))
elif isinstance(d, er.Instance):
# Instances can be ignored, because they are being created by
# ``__getattr__``.
pass
else:
names.append(api_classes.Usage(d.names[-1], d))