You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2017/12/20 23:02:34 UTC

[GitHub] merlimat commented on a change in pull request #996: Add table listing supported Python versions

merlimat commented on a change in pull request #996: Add table listing supported Python versions
URL: https://github.com/apache/incubator-pulsar/pull/996#discussion_r158158912
 
 

 ##########
 File path: site/docs/latest/clients/Python.md
 ##########
 @@ -79,45 +89,17 @@ client.close()
 
 ### Consumer example
 
-This would create a {% popover consumer %} with the `my-sub` {% popover subscription %} on the `persistent://sample/standalone/ns/my-topic` topic, listen for incoming messages, print the content and ID of messages that arrive, and {% popover acknowledge %} each message to the Pulsar {% popover broker %}:
+This creates a {% popover consumer %} with the `my-sub` {% popover subscription %} on the `persistent://sample/standalone/ns/my-topic` topic, listen for incoming messages, print the content and ID of messages that arrive, and {% popover acknowledge %} each message to the Pulsar {% popover broker %}:
 
 ```python
-import pulsar
+SUBSCRIPTION = 'my-sub
 
 Review comment:
   `'` is missing at the end

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services