From aee7bd2952e33a0ef28799c80954a98ba7eb298e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 19 Aug 2015 20:36:53 +0200 Subject: [PATCH] Make inventory generation deterministic. --- sphinx/builders/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py index 0dc0c0a31..6c24f1189 100644 --- a/sphinx/builders/html.py +++ b/sphinx/builders/html.py @@ -837,7 +837,7 @@ class StandaloneHTMLBuilder(Builder): u'# The remainder of this file is compressed using zlib.\n' % (self.config.project, self.config.version)).encode('utf-8')) compressor = zlib.compressobj(9) - for domainname, domain in iteritems(self.env.domains): + for domainname, domain in sorted(self.env.domains.items()): for name, dispname, type, docname, anchor, prio in \ sorted(domain.get_objects()): if anchor.endswith(name):