浏览代码

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