Browse Source

[Py3] Fixes docs build on py3

Ask Solem 9 years ago
parent
commit
62383df29b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      celery/app/task.py

+ 4 - 1
celery/app/task.py

@@ -230,6 +230,9 @@ class Task(object):
     #: Default task expiry time.
     expires = None
 
+    #: Task request stack, the current request will be the topmost.
+    request_stack = None
+
     #: Some may expect a request to exist even if the task has not been
     #: called.  This should probably be deprecated.
     _default_request = None
@@ -466,7 +469,7 @@ class Task(object):
         except AttributeError:
             pass
         else:
-            check_arguments(*args or (), **kwargs or {})
+            check_arguments(*(args or ()), **(kwargs or {}))
 
         app = self._get_app()
         if app.conf.CELERY_ALWAYS_EAGER: