# HG changeset patch # User Paul Boddie # Date 1341941455 -7200 # Node ID 61b49fc2c150ddc5389a208c2d707d17a1827bae # Parent 32adc6af1dc43c42e364932ceaa2d57d3a831a0d Added a placeholder for instances in value lists. diff -r 32adc6af1dc4 -r 61b49fc2c150 micropython/report.py --- a/micropython/report.py Tue Jul 10 18:54:33 2012 +0200 +++ b/micropython/report.py Tue Jul 10 19:30:55 2012 +0200 @@ -387,12 +387,18 @@ elif isinstance(attr, Instance): return [] + have_instances = False values = [] for v in attr.get_values(): if isinstance(v, Const): values.append((repr(v.get_value()), v)) elif not isinstance(v, Instance): values.append((v.full_name(), v)) + else: + have_instances = True + + if have_instances: + values.append(("...", None)) values.sort() return values