Browse Source

Check for bytes rather than absence of list. include ought to be an iterable of ids of some sort.

Jelmer Vernooij 8 years ago
parent
commit
7c5f7f0d0f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dulwich/walk.py

+ 3 - 1
dulwich/walk.py

@@ -268,7 +268,9 @@ class Walker(object):
         if order not in ALL_ORDERS:
             raise ValueError('Unknown walk order %s' % order)
         self.store = store
-        if not isinstance(include, list):
+        if isinstance(include, bytes):
+            # TODO(jelmer): Really, this should require a single type.
+            # Print deprecation warning here?
             include = [include]
         self.include = include
         self.excluded = set(exclude or [])