Selaa lähdekoodia

graftpoints are required to parse/serialize

milki 11 vuotta sitten
vanhempi
commit
3cbf909137
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      dulwich/repo.py

+ 2 - 2
dulwich/repo.py

@@ -97,7 +97,7 @@ BASE_DIRECTORIES = [
     ]
 
 
-def parse_graftpoints(graftpoints=iter([])):
+def parse_graftpoints(graftpoints):
     """Convert a list of graftpoints into a dict
 
     :param graftpoints: Iterator of graftpoint lines
@@ -127,7 +127,7 @@ def parse_graftpoints(graftpoints=iter([])):
     return grafts
 
 
-def serialize_graftpoints(graftpoints={}):
+def serialize_graftpoints(graftpoints):
     """Convert a dictionary of grafts into string
 
     The graft dictionary is: