Browse Source

Tweak shared_task example a bit

Berker Peksag 8 years ago
parent
commit
afcab420a7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      celery/app/__init__.py

+ 3 - 2
celery/app/__init__.py

@@ -96,17 +96,18 @@ def shared_task(*args, **kwargs):
         current apps task registry.
 
     Example:
+
         >>> from celery import Celery, shared_task
         >>> @shared_task
         ... def add(x, y):
         ...     return x + y
-
+        ...
         >>> app1 = Celery(broker='amqp://')
         >>> add.app is app1
         True
-
         >>> app2 = Celery(broker='redis://')
         >>> add.app is app2
+        True
     """
 
     def create_shared_task(**options):