瀏覽代碼

to py2.6 compat

Ask Solem 10 年之前
父節點
當前提交
59a849ae6b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      docs/_ext/celerydocs.py

+ 3 - 3
docs/_ext/celerydocs.py

@@ -23,7 +23,7 @@ APPATTRS = {
     'signature': 'celery.canvas.Signature',
 }
 
-APPDIRECT = {
+APPDIRECT = set([
     'on_configure', 'on_after_configure', 'on_after_finalize',
     'set_current', 'set_default', 'close', 'on_init', 'start',
     'worker_main', 'task', 'gen_task_name', 'finalize',
@@ -35,9 +35,9 @@ APPDIRECT = {
     'subclass_with_self', 'annotations', 'current_task', 'oid',
     'timezone', '__reduce_keys__', 'fixups', 'finalized', 'configured',
     'autofinalize', 'steps', 'user_options', 'main', 'clock',
-}
+])
 
-APPATTRS.update({x: 'celery.Celery.{0}'.format(x) for x in APPDIRECT})
+APPATTRS.update(dict((x, 'celery.Celery.{0}'.format(x)) for x in APPDIRECT))
 
 ABBRS = {
     'Celery': 'celery.Celery',