Python: remove unused file

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-04-06 22:56:07 +02:00
parent 0626684442
commit a44490b470

View File

@@ -1,11 +0,0 @@
import socket
import ssl
hostname = 'www.python.org'
context = ssl.SSLContext(ssl.PROTOCOL_TLS)
context.options |= ssl.OP_NO_TLSv1
context.options |= ssl.OP_NO_TLSv1_1
with socket.create_connection((hostname, 443)) as sock:
with context.wrap_socket(sock, server_hostname=hostname) as ssock:
print(ssock.version())