Skip to content

Commit be08156

Browse files
hairmareduglin
authored andcommitted
fix: merge strings on same line into single string
Signed-off-by: Lucas Bickel <hairmare@rabe.ch>
1 parent 2e5b96b commit be08156

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/http-json-cloudevents/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def send_binary_cloud_event(url):
3131

3232
# send and print event
3333
requests.post(url, headers=headers, data=body)
34-
print(f"Sent {event['id']} from {event['source']} with " f"{event.data}")
34+
print(f"Sent {event['id']} from {event['source']} with {event.data}")
3535

3636

3737
def send_structured_cloud_event(url):
@@ -47,15 +47,15 @@ def send_structured_cloud_event(url):
4747

4848
# send and print event
4949
requests.post(url, headers=headers, data=body)
50-
print(f"Sent {event['id']} from {event['source']} with " f"{event.data}")
50+
print(f"Sent {event['id']} from {event['source']} with {event.data}")
5151

5252

5353
if __name__ == "__main__":
5454
# expects a url from command line.
5555
# e.g. python3 client.py http://localhost:3000/
5656
if len(sys.argv) < 2:
5757
sys.exit(
58-
"Usage: python with_requests.py " "<CloudEvents controller URL>"
58+
"Usage: python with_requests.py <CloudEvents controller URL>"
5959
)
6060

6161
url = sys.argv[1]

0 commit comments

Comments
 (0)