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

Dmitry Shachnev mitya57 at moszumanska.debian.org
Wed Mar 2 07:30:02 UTC 2016


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

mitya57 pushed a commit to branch master
in repository sphinx.

commit f2eef5cb55647b10056327df4570ec6bef865725
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 e247f33..a127a71 100644
--- a/sphinx/builders/html.py
+++ b/sphinx/builders/html.py
@@ -834,7 +834,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