Просмотр исходного кода

Do not have to use buffer here. Closes #1438

Ask Solem 11 лет назад
Родитель
Сommit
5b963a1e2f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      celery/concurrency/processes.py

+ 1 - 1
celery/concurrency/processes.py

@@ -672,7 +672,7 @@ class TaskPool(BasePool):
             header = pack('>I', body_size)
             header = pack('>I', body_size)
             # index 1,0 is the job ID.
             # index 1,0 is the job ID.
             job = get_job(tup[1][0])
             job = get_job(tup[1][0])
-            job._payload = header, buffer(body), body_size
+            job._payload = header, body, body_size
             put_message(job)
             put_message(job)
         self._pool._quick_put = send_job
         self._pool._quick_put = send_job