소스 검색

Fixing build

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)]