Explorar el Código

Fix iteritems.

Jelmer Vernooij hace 16 años
padre
commit
65585d7230
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      dulwich/repo.py

+ 1 - 4
dulwich/repo.py

@@ -45,10 +45,7 @@ class Tags(object):
         self.tags = tags
 
     def __getitem__(self, name):
-        for n in self.tags:
-            if n.name == name:
-                return n.ref
-        raise KeyError(name)
+        return self.tags[name]
 
     def __len__(self):
         return len(self.tags)