Ver Fonte

graftpoints are required to parse/serialize

milki há 11 anos atrás
pai
commit
3cbf909137
1 ficheiros alterados com 2 adições e 2 exclusões
  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
     """Convert a list of graftpoints into a dict
 
 
     :param graftpoints: Iterator of graftpoint lines
     :param graftpoints: Iterator of graftpoint lines
@@ -127,7 +127,7 @@ def parse_graftpoints(graftpoints=iter([])):
     return grafts
     return grafts
 
 
 
 
-def serialize_graftpoints(graftpoints={}):
+def serialize_graftpoints(graftpoints):
     """Convert a dictionary of grafts into string
     """Convert a dictionary of grafts into string
 
 
     The graft dictionary is:
     The graft dictionary is: