Selaa lähdekoodia

On some python installations this created a stack overflow, (no idea why)

Ask Solem 16 vuotta sitten
vanhempi
commit
efcbe6bd53
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      celery/datastructures.py

+ 1 - 1
celery/datastructures.py

@@ -27,7 +27,7 @@ class PositionQueue(UserList):
     def filled(self):
         """Returns the filled slots as a list."""
         return filter(lambda v: not isinstance(v, self.UnfilledPosition),
-                      self)
+                      self.data)
 
         
 class TaskProcessQueue(UserList):