ask/celery — pull request #656 by yrik (2012-03-31 22:23:36+00:00)
Title: Fix import error in python 2.5

The patch fixes this error:
{{{
Traceback (most recent call last):
File "motloh/manage.py", line 14, in
execute_manager(settings)
File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/core/management/__init__.py", line 459, in execute_manager
utility.execute()
File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/core/management/__init__.py", line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/yrik/motloh/.env/src/djcelery/djcelery/management/commands/celeryd.py", line 10, in
from djcelery.app import app
File "/home/yrik/motloh/.env/src/djcelery/djcelery/app.py", line 3, in
from celery.app import default_app
File "/home/yrik/motloh/.env/src/celery/celery/app/__init__.py", line 21, in
import annotations
ImportError: No module named annotations
}}}
I've got this error on my system with latest celery from official repo.

It's connected with import command behavior in python 2.5.