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
This commit is contained in:
Ian Wienand 2018-09-26 07:33:10 +10:00
parent 8f1cecfd74
commit 0165692e62
1 changed files with 1 additions and 1 deletions

View File

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