This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit 36b6ec5c84b18b564ce12fafb0c85489b539b29e
Author: Andrew Stitcher <[email protected]>
AuthorDate: Fri Jun 6 18:57:48 2025 -0400

    PROTON-2890: [Python examples] Revert changes to example output
    
    They were causing the example test runner to fail.
---
 python/examples/client.py      | 2 +-
 python/examples/simple_recv.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/examples/client.py b/python/examples/client.py
index 26dfdcf97..96dd98b86 100755
--- a/python/examples/client.py
+++ b/python/examples/client.py
@@ -58,7 +58,7 @@ class Client(MessagingHandler):
         request = self.outstanding.pop(correlation_id, None)
 
         if request:
-            print(f"{request}({correlation_id}) => {message.body}")
+            print(f"{request} => {message.body}")
             self.accept(delivery)
         else:
             print(f"Unexpected response - unknown 
correlation_id({correlation_id}): {message.body}")
diff --git a/python/examples/simple_recv.py b/python/examples/simple_recv.py
index 61bf1bbd1..d64a8cd49 100755
--- a/python/examples/simple_recv.py
+++ b/python/examples/simple_recv.py
@@ -42,7 +42,7 @@ class Recv(MessagingHandler):
             return
         self.dedup_ids.add(message.id)
         if self.expected == 0 or self.received < self.expected:
-            print(f"{message}")
+            print(f"{message.body}")
             self.received += 1
             if self.received == self.expected:
                 event.receiver.close()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to