diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2012-03-12 13:29:45 +1300 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2012-03-12 13:29:45 +1300 |
| commit | 49cbc0afd0c0a1667db1a18c223d2a98a94b79f8 (patch) | |
| tree | 852c0773648dc3a6c8ed096231e0db0bc0648977 /tools | |
| parent | 3ff6df484eddffe1e811b2dbb2dc9c61e4b46178 (diff) | |
Unity introspection script now sorts node properties alphabetically.
(bzr r2067.8.1)
Diffstat (limited to 'tools')
| -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'): |
