Browse Source

Forgot another instance of functools.partial

Ask Solem 15 years ago
parent
commit
360604811e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      celery/backends/__init__.py

+ 2 - 2
celery/backends/__init__.py

@@ -1,6 +1,6 @@
 import sys
 import sys
-from functools import partial
 
 
+from billiard.utils.functional import curry
 from carrot.utils import rpartition
 from carrot.utils import rpartition
 
 
 from celery import conf
 from celery import conf
@@ -50,7 +50,7 @@ def get_backend_cls(backend):
     Get the backend class specified in :setting:`CELERY_BACKEND`.
     Get the backend class specified in :setting:`CELERY_BACKEND`.
 
 
 """
 """
-get_default_backend_cls = partial(get_backend_cls, conf.CELERY_BACKEND)
+get_default_backend_cls = curry(get_backend_cls, conf.CELERY_BACKEND)
 
 
 
 
 """
 """