@@ -7,7 +7,6 @@
"""
from __future__ import absolute_import
-from __future__ import with_statement
import os
@@ -8,7 +8,6 @@
from collections import deque
from itertools import starmap
from celery import current_app
from celery import states
@@ -7,7 +7,6 @@ The :program:`celery` umbrella command.
import anyjson
import sys
import atexit
import errno
from .utils import crypto, reraise_errors
import base64
@@ -1,5 +1,4 @@
import logging
from kombu import Exchange, Queue
from mock import Mock
from functools import wraps
from mock import patch
import socket
import datetime
import uuid
from datetime import timedelta
from mock import Mock, patch
from anyjson import dumps
from datetime import datetime
import signal
from nose import SkipTest
from mock import patch as mpatch
from celery.task import base
from kombu import Connection, Producer, Queue, Exchange
from kombu.exceptions import StdChannelError
from celery.exceptions import SecurityError
from celery.security.certificate import Certificate, CertStore, FSCertStore
@@ -13,7 +13,6 @@ Generated with::
import __builtin__
from contextlib import contextmanager
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
from celery.app.registry import TaskRegistry
from celery.task import Task, PeriodicTask
from pickle import loads, dumps
from datetime import datetime, timedelta
try:
import unittest
import select
from celery.worker.hub import (
DummyLock,
import imp as _imp
import importlib
@@ -602,7 +602,8 @@ is following the conventions.
- * If the module uses the with statement it must also enable that::
+ * If the module uses the with statement and must be compatible
+ with Python 2.5 (celery is not) then it must also enable that::
from __future__ import with_statement