Parcourir la source

stash: fix __getitem__

Peter Rowlands il y a 4 ans
Parent
commit
42b1f160ea
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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())