sort class items in inheritance_diagram

avoids hash changing every time a diagram is regenerated due to random dict ordering
This commit is contained in:
Min RK 2013-10-21 22:27:51 +00:00
parent ad920a46ff
commit 05b782078c

View File

@ -241,7 +241,7 @@ class InheritanceGraph(object):
res.append('digraph %s {\n' % name)
res.append(self._format_graph_attrs(g_attrs))
for cls, (name, fullname, bases) in self.class_info.items():
for cls, (name, fullname, bases) in sorted(self.class_info.items()):
# Write the node
this_node_attrs = n_attrs.copy()
if fullname in urls: