Преглед на файлове

Merge branch 'greghaskins/bugfix-450'

Ask Solem преди 13 години
родител
ревизия
c741004fc4
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      celery/concurrency/processes/__init__.py

+ 2 - 2
celery/concurrency/processes/__init__.py

@@ -6,8 +6,6 @@ Process Pools.
 import platform
 import signal as _signal
 
-from os import kill as _kill
-
 from celery.concurrency.base import BasePool
 from celery.concurrency.processes.pool import Pool, RUN
 
@@ -17,6 +15,8 @@ if platform.system() == "Windows":  # pragma: no cover
     # *and its children* (if any).
     from celery.concurrency.processes import _win
     _kill = _win.kill_processtree  # noqa
+else:
+    from os import kill as _kill
 
 
 class TaskPool(BasePool):