Explorar el Código

Forgot another instance of functools.partial

Ask Solem hace 15 años
padre
commit
360604811e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      celery/backends/__init__.py

+ 2 - 2
celery/backends/__init__.py

@@ -1,6 +1,6 @@
 import sys
-from functools import partial
 
+from billiard.utils.functional import curry
 from carrot.utils import rpartition
 
 from celery import conf
@@ -50,7 +50,7 @@ def get_backend_cls(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)
 
 
 """