pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] merlimat commented on a change in pull request #996: Add table listing supported Python versions
Date Thu, 01 Jan 1970 00:00:00 GMT
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

Mime
View raw message