소스 검색

stash: fix __getitem__

Peter Rowlands 4 년 전
부모
커밋
42b1f160ea
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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())