Commits

Anonymous committed 1d3a200

Replace unneeded defaultdict with dict

Comments (0)

Files changed (1)

sphinx/versioning.py

 """
 from uuid import uuid4
 from operator import itemgetter
-from collections import defaultdict
 
 from sphinx.util.pycompat import product, zip_longest
 
     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):