Explorar o código

Attempt to fix Python 3 build

Ask Solem %!s(int64=9) %!d(string=hai) anos
pai
achega
e501fc1f1c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      celery/datastructures.py

+ 3 - 1
celery/datastructures.py

@@ -944,7 +944,9 @@ class BufferMapping(OrderedDict, Evictable):
     def __init__(self, maxsize, iterable=None, bufmaxsize=1000):
         self.maxsize = maxsize
         self.bufmaxsize = 1000
-        super(BufferMapping, self).__init__(iterable or ())
+        super(BufferMapping, self).__init__()
+        if iterable:
+            self.update(iterable)
         self.total = sum(len(buf) for buf in values(self))
 
     def pop(self, key, *default):