瀏覽代碼

graftpoints are required to parse/serialize

milki 11 年之前
父節點
當前提交
3cbf909137
共有 1 個文件被更改,包括 2 次插入2 次删除
  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: