File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
samples/http-json-cloudevents Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def send_binary_cloud_event(url):
31
31
32
32
# send and print event
33
33
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 } " )
35
35
36
36
37
37
def send_structured_cloud_event (url ):
@@ -47,15 +47,15 @@ def send_structured_cloud_event(url):
47
47
48
48
# send and print event
49
49
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 } " )
51
51
52
52
53
53
if __name__ == "__main__" :
54
54
# expects a url from command line.
55
55
# e.g. python3 client.py http://localhost:3000/
56
56
if len (sys .argv ) < 2 :
57
57
sys .exit (
58
- "Usage: python with_requests.py " " <CloudEvents controller URL>"
58
+ "Usage: python with_requests.py <CloudEvents controller URL>"
59
59
)
60
60
61
61
url = sys .argv [1 ]
You can’t perform that action at this time.
0 commit comments