dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00674
[PATCH 10/13] diff_tree: Use built-in defaultdict module correctly.
From: Dave Borowitz <dborowitz@xxxxxxxxxx>
Change-Id: I41073969ce02ee2e26c812a62d9e583b6c5525a3
---
dulwich/diff_tree.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dulwich/diff_tree.py b/dulwich/diff_tree.py
index 3959d65..d0f4936 100644
--- a/dulwich/diff_tree.py
+++ b/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 (
--
1.7.3.1
References