Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

diff_tree: Use built-in defaultdict module correctly.

Change-Id: I41073969ce02ee2e26c812a62d9e583b6c5525a3
  • Loading branch information...
commit e2252ee91c4924146bc0ea171926c0510f4da3fa 1 parent 036f719
@dborowitz authored jelmer committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 dulwich/diff_tree.py
View
6 dulwich/diff_tree.py
@@ -18,12 +18,16 @@
"""Utilities for diffing files and trees."""
+try:
+ from collections import defaultdict
+except ImportError:
+ from dulwich._compat import defaultdict
+
from cStringIO import StringIO
import itertools
import stat
from dulwich._compat import (
- defaultdict,
namedtuple,
)
from dulwich.objects import (
Please sign in to comment.
Something went wrong with that request. Please try again.