Explorar o código

Use frozenset.

Jelmer Vernooij %!s(int64=3) %!d(string=hai) anos
pai
achega
026029b309
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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.