[Python-modules-commits] [sphinx] 09/13: make inventory generation deterministic

Dmitry Shachnev mitya57 at moszumanska.debian.org
Mon Nov 30 15:35:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository sphinx.

commit b694ca253577e3f29b8d42530ab1d58aafb8c0ca
Author: Val Lorentz <progval at progval.net>
Date:   Thu Oct 8 13:58:14 2015 -0700

    make inventory generation deterministic
    
    Forwarded: https://github.com/sphinx-doc/sphinx/pull/2009
    Last-Update: 2015-08-20
    
    Patch-Name: reproducible_inventory.diff
---
 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 7006eff..d4487fc 100644
--- a/sphinx/builders/html.py
+++ b/sphinx/builders/html.py
@@ -830,7 +830,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):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx.git



More information about the Python-modules-commits mailing list