Explorar o código

stash: fix __getitem__

Peter Rowlands %!s(int64=4) %!d(string=hai) anos
pai
achega
42b1f160ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/stash.py

+ 1 - 1
dulwich/stash.py

@@ -111,7 +111,7 @@ class Stash(object):
         return cid
 
     def __getitem__(self, index):
-        return self._stashes()[index]
+        return list(self.stashes())[index]
 
     def __len__(self):
         return len(self._stashes())