Jelmer Vernooij 16 лет назад
Родитель
Сommit
b79480bf1c
1 измененных файлов с 4 добавлено и 7 удалено
  1. 4 7
      dulwich/repo.py

+ 4 - 7
dulwich/repo.py

@@ -39,13 +39,6 @@ OBJECTDIR = 'objects'
 SYMREF = 'ref: '
 
 
-class Tag(object):
-
-    def __init__(self, name, ref):
-        self.name = name
-        self.ref = ref
-
-
 class Tags(object):
 
     def __init__(self, tags):
@@ -60,6 +53,10 @@ class Tags(object):
     def __len__(self):
         return len(self.tags)
 
+    def iteritems(self):
+        for k in self.tags:
+            yield k, self[k]
+
 
 class Repo(object):