Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc feedback update
  • Loading branch information
yunhaoling committed Nov 5, 2019
commit 2a4f197656924dd1f1a4e459cebb15b3708a3f02
2 changes: 1 addition & 1 deletion sdk/eventhub/azure-eventhubs/azure/eventhub/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def body_as_str(self, encoding='UTF-8'):

:param encoding: The encoding to use for decoding message data.
Default is 'UTF-8'
:rtype: str or unicode
:rtype: str
"""
data = self.body
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ def example_eventhub_sync_send_and_receive():

event_data = EventData("String data")
event_data = EventData(b"Bytes data")
event_data = EventData([b"A", b"B", b"C"])

list_data = ['Message {}'.format(i) for i in range(10)]
event_data = EventData(body=list_data)
# [END create_event_data]

# [START eventhub_producer_client_create_batch_sync]
Expand Down