瀏覽代碼

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

Jelmer Vernooij 8 年之前
父節點
當前提交
7c5f7f0d0f
共有 1 個文件被更改,包括 3 次插入1 次删除
  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 [])