diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2012-03-12 10:48:34 -0400 |
|---|---|---|
| committer | Tarmac <> | 2012-03-12 10:48:34 -0400 |
| commit | 51831c17b47da924656c80662b2de2336aba1744 (patch) | |
| tree | ff704a611fde4c9704008c1b78a38e7ed5d3511a | |
| parent | 41fa08a193129fcbd9b78d9442b7ee3b63d88d17 (diff) | |
| parent | 49cbc0afd0c0a1667db1a18c223d2a98a94b79f8 (diff) | |
The Problem:5.6.0
Node properties in the unity introspection visualiser script were shown unordered. This made it hard to view node properties. The solution: Node properties are now sorted. Tests: ummm... no.. Fixes: . Approved by Tim Penhey. (bzr r2075)
| -rwxr-xr-x | tools/unity-introspection-visualiser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/unity-introspection-visualiser.py b/tools/unity-introspection-visualiser.py index 27767a9b1..c56b241fb 100755 --- a/tools/unity-introspection-visualiser.py +++ b/tools/unity-introspection-visualiser.py @@ -50,7 +50,7 @@ def traverse_tree(state, parent, graph): global NEXT_NODE_ID lbl = parent.get_comment() + "|" # first, set labels for this node: - bits = ["%s=%s" % (k, string_rep(state[k])) for k in state.keys() if k != 'Children'] + bits = ["%s=%s" % (k, string_rep(state[k])) for k in sorted(state.keys()) if k != 'Children'] lbl += "\l".join(bits) parent.set_label(escape('"{' + lbl + '}"')) if state.has_key('Children'): |
