Procházet zdrojové kódy

stash: fix __len__

Peter Rowlands před 4 roky
rodič
revize
95a846dd7f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()))