Ask Solem преди 12 години
родител
ревизия
a71b4da024
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      celery/concurrency/gevent.py

+ 1 - 3
celery/concurrency/gevent.py

@@ -7,9 +7,9 @@
 
 """
 from __future__ import absolute_import
+from __future__ import with_statement
 
 import os
-import sys
 
 PATCHED = [0]
 if not os.environ.get('GEVENT_NOPATCH') and not PATCHED[0]:
@@ -30,8 +30,6 @@ except ImportError:
 
 from time import time
 
-from billiard.einfo import ExceptionInfo
-from billiard.exceptions import TimeLimitExceeded
 from celery.utils import timer2
 
 from .base import apply_target, BasePool