Explorar o código

Forgot another instance of functools.partial

Ask Solem %!s(int64=15) %!d(string=hai) anos
pai
achega
360604811e
Modificáronse 1 ficheiros con 2 adicións e 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)
 
 
 """