mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
ad920a46ff
commit
05b782078c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user