소스 검색

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.