Browse Source

Fix docs example (small) (#4009)

* Fix docs example

* Freeze pydocstyle to 1.1.1

* Add self to contributors
Anthony Lukach 7 years ago
parent
commit
bb80558fbe
2 changed files with 3 additions and 2 deletions
  1. 1 0
      CONTRIBUTORS.txt
  2. 2 2
      docs/userguide/extending.rst

+ 1 - 0
CONTRIBUTORS.txt

@@ -237,3 +237,4 @@ Brian May, 2017/04/10
 Dmytro Petruk, 2017/04/12
 Joey Wilhelm, 2017/04/12
 Simon Schmidt, 2017/05/19
+Anthony Lukach, 2017/05/23

+ 2 - 2
docs/userguide/extending.rst

@@ -44,7 +44,7 @@ whenever the connection is established:
             message.ack()
     app.steps['consumer'].add(MyConsumerStep)
 
-    def send_me_a_message(self, who='world!', producer=None):
+    def send_me_a_message(who, producer=None):
         with app.producer_or_acquire(producer) as producer:
             producer.publish(
                 {'hello': who},
@@ -56,7 +56,7 @@ whenever the connection is established:
             )
 
     if __name__ == '__main__':
-        send_me_a_message('celery')
+        send_me_a_message('world!')
 
 
 .. note::