summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-09-22 11:30:06 +0200
committerGeorg Brandl <georg@python.org>2011-09-22 11:30:06 +0200
commit94e93d946b5af239ec95899a8a9f2bde88d4ebc7 (patch)
tree29af66a3c635eeadb0289a78f7e1000111310dff
parentccef6db7cb04db18258c41a4fd5af6384525737a (diff)
downloadsphinx-94e93d946b5af239ec95899a8a9f2bde88d4ebc7.tar.gz
Fix #704: image file duplication bug.
-rw-r--r--CHANGES2
-rw-r--r--sphinx/util/__init__.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index ddb8dea3..dea951de 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
Release 1.0.8 (in development)
==============================
+* #704: Fix image file duplication bug.
+
* #677: Fix parsing of multiple signatures in C++ domain.
* #637: Ignore Emacs lock files when looking for source files.
diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py
index b7e64b11..d2b9193c 100644
--- a/sphinx/util/__init__.py
+++ b/sphinx/util/__init__.py
@@ -113,11 +113,11 @@ class FilenameUniqDict(dict):
return uniquename
def purge_doc(self, docname):
- for filename, (docs, _) in self.items():
+ for filename, (docs, unique) in self.items():
docs.discard(docname)
if not docs:
del self[filename]
- self._existing.discard(filename)
+ self._existing.discard(unique)
def __getstate__(self):
return self._existing