Browse Source

Fix for Python2.5

Ask Solem 12 years ago
parent
commit
9b0adeb011
1 changed files with 2 additions and 1 deletions
  1. 2 1
      celery/app/base.py

+ 2 - 1
celery/app/base.py

@@ -132,7 +132,8 @@ class Celery(object):
             # the task instance from the current app.
             # Really need a better solution for this :(
             from . import shared_task as proxies_to_curapp
-            return proxies_to_curapp(*args, _force_evaluate=True, **opts)
+            opts['_force_evaluate'] = True  # XXX Py2.5
+            return proxies_to_curapp(*args, **opts)
 
         def inner_create_task_cls(shared=True, filter=None, **opts):