Ask Solem 8 سال پیش
والد
کامیت
86cdd064d1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      celery/utils/collections.py

+ 1 - 1
celery/utils/collections.py

@@ -720,7 +720,7 @@ class Evictable(object):
         """Force evict until maxsize is enforced."""
         self._evict(range=count)
 
-    def _evict(self, limit=100):
+    def _evict(self, limit=100, range=range):
         # type: (int) -> None
         try:
             [self._evict1() for _ in range(limit)]