소스 검색

No iteritems on py3.

Ionel Cristian Mărieș 11 년 전
부모
커밋
b94faedb74
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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):