Browse Source

Removes unused celery.app.default_loader

Ask Solem 8 năm trước cách đây
mục cha
commit
a4fbd6d817
3 tập tin đã thay đổi với 0 bổ sung14 xóa
  1. 0 1
      celery/_state.py
  2. 0 6
      celery/app/__init__.py
  3. 0 7
      docs/reference/celery.app.rst

+ 0 - 1
celery/_state.py

@@ -89,7 +89,6 @@ def _set_current_app(app):
     _tls.current_app = app
 
 
-C_STRICT_APP = os.environ.get('C_STRICT_APP')
 if os.environ.get('C_STRICT_APP'):  # pragma: no cover
     def get_current_app():
         raise Exception('USES CURRENT APP')

+ 0 - 6
celery/app/__init__.py

@@ -35,12 +35,6 @@ default_app = Proxy(lambda: _state.default_app)
 #: is no active app.
 app_or_default = None
 
-#: The 'default' loader is the default loader used by old applications.
-#: This is deprecated and should no longer be used as it's set too early
-#: to be affected by --loader argument.
-default_loader = os.environ.get('CELERY_LOADER') or 'default'  # XXX
-
-
 #: Function used to push a task to the thread local stack
 #: keeping track of the currently executing task.
 #: You must remember to pop the task after.

+ 0 - 7
docs/reference/celery.app.rst

@@ -17,10 +17,3 @@
     .. autofunction:: app_or_default
     .. autofunction:: enable_trace
     .. autofunction:: disable_trace
-
-
-    Data
-    ----
-
-    .. autodata:: default_loader
-