Commits

Takayuki Shimizukawa committed 7685daf

fix #1008 #1029 : intersphinx_mapping values are not stable if mapping have plural key/value set

Comments (0)

Files changed (1)

sphinx/ext/intersphinx.py

         for name, _, invdata in cache.itervalues():
             if name:
                 env.intersphinx_named_inventory[name] = invdata
-            for type, objects in invdata.iteritems():
-                env.intersphinx_inventory.setdefault(
-                    type, {}).update(objects)
+            else:
+                for type, objects in invdata.iteritems():
+                    env.intersphinx_inventory.setdefault(
+                        type, {}).update(objects)
 
 
 def missing_reference(app, env, node, contnode):