Browse Source

Use OrderedDict for object tracking

This makes iterating over the dict consistent on all python versions,
which is important if we're extracting them for a contents list or
similar.

Change-Id: I1a23bfc8fd032dd545cc48302ef469006b1f7a1e
Ian Wienand 7 months ago
parent
commit
0165692e62
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      zuul_sphinx/zuul.py

+ 1
- 1
zuul_sphinx/zuul.py View File

@@ -615,7 +615,7 @@ class ZuulDomain(Domain):
615 615
         'layout': None,
616 616
         'layout_path': None,
617 617
         'role_paths': None,
618
-        'objects': {},
618
+        'objects': OrderedDict(),
619 619
     }  # type: Dict[str, Dict]
620 620
 
621 621
     def resolve_xref(self, env, fromdocname, builder, type, target,

Loading…
Cancel
Save