1.1 --- a/micropython/graph.py Thu Mar 19 23:05:55 2009 +0100
1.2 +++ b/micropython/graph.py Fri Mar 20 00:32:43 2009 +0100
1.3 @@ -82,12 +82,14 @@
1.4 for obj in module.all_objects:
1.5 if isinstance(obj, micropython.inspect.Class):
1.6 for attr in obj.all_attributes().values():
1.7 - if attr.value is not None:
1.8 - print >>out, ' "%s":%s -> "%s";' % (obj.full_name(), attr.name, get_name(attr.value))
1.9 + for value in attr.get_values():
1.10 + if value is not None:
1.11 + print >>out, ' "%s":%s -> "%s";' % (obj.full_name(), attr.name, get_name(value))
1.12 elif isinstance(obj, micropython.inspect.Function):
1.13 for attr in obj.all_locals().values():
1.14 - if attr.value is not None:
1.15 - print >>out, ' "%s":%s -> "%s";' % (obj.full_name(), attr.name, get_name(attr.value))
1.16 + for value in attr.get_values():
1.17 + if value is not None:
1.18 + print >>out, ' "%s":%s -> "%s";' % (obj.full_name(), attr.name, get_name(value))
1.19 print >>out, ' }'
1.20
1.21 print >>out, "}"