Explorar el Código

stash: fix __len__

Peter Rowlands hace 4 años
padre
commit
95a846dd7f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dulwich/stash.py

+ 1 - 1
dulwich/stash.py

@@ -114,4 +114,4 @@ class Stash(object):
         return list(self.stashes())[index]
 
     def __len__(self):
-        return len(self._stashes())
+        return len(list(self.stashes()))