소스 검색

add read_packed_refs docstring.

Jelmer Vernooij 16 년 전
부모
커밋
ff80e1b4ff
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      dulwich/repo.py

+ 6 - 0
dulwich/repo.py

@@ -71,6 +71,12 @@ class Tags(object):
 
 
 def read_packed_refs(f):
+    """Read a packed refs file.
+
+    Yields tuples with ref names and SHA1s.
+
+    :param f: file-like object to read from
+    """
     l = f.readline()
     for l in f.readlines():
         if l[0] == "#":