mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Python: remove unused file
This commit is contained in:
@@ -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())
|
|
||||||
Reference in New Issue
Block a user