summaryrefslogtreecommitdiff
path: root/sphinx/versioning.py
diff options
context:
space:
mode:
authorDaniel Neuhäuser <ich@danielneuhaeuser.de>2011-01-08 18:03:17 +0100
committerDaniel Neuhäuser <ich@danielneuhaeuser.de>2011-01-08 18:03:17 +0100
commita2934e33b8f051569e7d4f421502e6a184742e5b (patch)
tree70b6b5fef2792dd4190dddb99e878ad59e32f8cd /sphinx/versioning.py
parent8814e973897d6bdaa13279997e016b95111ee8be (diff)
downloadsphinx-git-a2934e33b8f051569e7d4f421502e6a184742e5b.tar.gz
Replace unneeded defaultdict with dict
Diffstat (limited to 'sphinx/versioning.py')
-rw-r--r--sphinx/versioning.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/versioning.py b/sphinx/versioning.py
index f50f80b0d..74355efed 100644
--- a/sphinx/versioning.py
+++ b/sphinx/versioning.py
@@ -11,7 +11,6 @@
"""
from uuid import uuid4
from operator import itemgetter
-from collections import defaultdict
from sphinx.util.pycompat import product, zip_longest
@@ -49,7 +48,7 @@ def merge_doctrees(old, new, condition):
new_iter = new.traverse(condition)
old_nodes = []
new_nodes = []
- ratios = defaultdict(list)
+ ratios = {}
seen = set()
# compare the nodes each doctree in order
for old_node, new_node in zip_longest(old_iter, new_iter):