Browse Source

Using AppPickler is discouraged (use __reduce_keys__)

Ask Solem 11 years ago
parent
commit
5c7b8d0e90
2 changed files with 2 additions and 1 deletions
  1. 1 0
      celery/app/base.py
  2. 1 1
      celery/app/utils.py

+ 1 - 0
celery/app/base.py

@@ -66,6 +66,7 @@ def _unpickle_appattr(reverse_name, args):
 
 
 class Celery(object):
+    #: This is deprecated, use :meth:`reduce_keys` instead
     Pickler = AppPickler
 
     SYSTEM = platforms.SYSTEM

+ 1 - 1
celery/app/utils.py

@@ -115,7 +115,7 @@ class Settings(ConfigurationView):
 
 
 class AppPickler(object):
-    """Old application pickler/unpickler (<= 3.0)."""
+    """Old application pickler/unpickler (< 3.1)."""
 
     def __call__(self, cls, *args):
         kwargs = self.build_kwargs(*args)