MCPcopy Create free account
hub / github.com/geekcomputers/Python / Write

Function Write

Python_chatting_application/client.py:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def Write():
28 while True:
29 try:
30 reply_msg = f"{nickname} :: {input()}"
31 s.send(bytes(reply_msg, "utf-8"))
32 except Exception as error:
33 print(f"An Error Occured while sending message !!!\n error : {error}")
34 s.close()
35 flag = 1
36 break
37
38
39if flag == 1:

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected