This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 3b1c6db Fixed Python sample code (#1951)
3b1c6db is described below
commit 3b1c6db32e31cd6d95fd0fd9527d5d00f5ab4d89
Author: massakam <[email protected]>
AuthorDate: Wed Jun 13 01:47:23 2018 +0900
Fixed Python sample code (#1951)
---
site/docs/latest/clients/Python.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/site/docs/latest/clients/Python.md
b/site/docs/latest/clients/Python.md
index c67357d..1b59d57 100644
--- a/site/docs/latest/clients/Python.md
+++ b/site/docs/latest/clients/Python.md
@@ -93,7 +93,7 @@ consumer = client.subscribe('my-topic', 'my-subscription')
while True:
msg = consumer.receive()
- print("Received message '%s' id='%s'", msg.data(), msg.message_id())
+ print("Received message '{}' id='{}'".format(msg.data(), msg.message_id()))
consumer.acknowledge(msg)
client.close()
@@ -111,6 +111,6 @@ reader = client.create_reader('my-topic', msg_id)
while True:
msg = reader.receive()
- print("Received message '%s' id='%s'", msg.data(), msg.message_id())
+ print("Received message '{}' id='{}'".format(msg.data(), msg.message_id()))
# No acknowledgment
```
--
To stop receiving notification emails like this one, please contact
[email protected].