replace deprecated ssl.wrap()

This commit is contained in:
jkhsjdhjs 2023-07-16 22:19:06 +00:00
parent 74a8f3bfe7
commit ad96b14445

View File

@ -50,9 +50,9 @@ y = "\x038"
r = "\x034"
g = "\x033"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
irc = ssl.wrap_socket(s)
context = ssl.create_default_context()
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
irc = context.wrap_socket(sock, server_hostname=host)
# Currency API