瀏覽代碼

Use frozenset.

Jelmer Vernooij 3 年之前
父節點
當前提交
026029b309
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dulwich/object_store.py

+ 2 - 2
dulwich/object_store.py

@@ -331,8 +331,8 @@ class BaseObjectStore(object):
     def _collect_ancestors(
         self,
         heads,
-        common=set(),
-        shallow=set(),
+        common=frozenset(),
+        shallow=frozenset(),
         get_parents=lambda commit: commit.parents,
     ):
         """Collect all ancestors of heads up to (excluding) those in common.