[Python-checkins] r58014 - doctools/trunk/sphinx/environment.py

georg.brandl python-checkins at python.org
Thu Sep 6 17:02:33 CEST 2007


Author: georg.brandl
Date: Thu Sep 6 17:02:32 2007
New Revision: 58014
Modified:
 doctools/trunk/sphinx/environment.py
Log:
Fix wrong invalidation of parent files.
Modified: doctools/trunk/sphinx/environment.py
==============================================================================
--- doctools/trunk/sphinx/environment.py	(original)
+++ doctools/trunk/sphinx/environment.py	Thu Sep 6 17:02:32 2007
@@ -197,7 +197,7 @@
 # (don't show if it's only one item)
 self.toctree_relations = {} # filename -> ["parent", "previous", "next"] filename
 # for navigating in the toctree
- self.files_to_rebuild = {} # filename -> list of files (containing its TOCs)
+ self.files_to_rebuild = {} # filename -> set of files (containing its TOCs)
 # to rebuild too
 
 # X-ref target inventory
@@ -234,8 +234,9 @@
 self.titles.pop(filename, None)
 self.tocs.pop(filename, None)
 self.toc_num_entries.pop(filename, None)
- self.files_to_rebuild.pop(filename, None)
 
+ for subfn, fnset in self.files_to_rebuild.iteritems():
+ fnset.discard(filename)
 for fullname, (fn, _) in self.descrefs.items():
 if fn == filename:
 del self.descrefs[fullname]


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /