Explorar el Código

No iteritems on py3.

Ionel Cristian Mărieș hace 11 años
padre
commit
b94faedb74
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/concurrency/workhorse.py

+ 1 - 1
celery/concurrency/workhorse.py

@@ -190,7 +190,7 @@ class TaskPool(BasePool):
                     elif os.WIFSTOPPED(exit_code):
                         pending[pid] = os.WSTOPSIG(exit_code)
 
-        for pid, exit_code in pending.iteritems():
+        for pid, exit_code in pending.items():
             self.on_worker_exit(pid, exit_code)
 
     def on_worker_exit(self, pid, exit_code):