Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/python/python-wasm/data/http/wrap_socket.py
1067 views
1
import ssl
2
import socket
3
#context0 = ssl.SSLContext(16)
4
#print(context0)
5
6
conn = socket.create_connection(("localhost", 2000))
7
8
import ssl
9
# this works with "import ssl" down here, but breaks
10
# with "import ssl" at the top of this file.
11
context = ssl.SSLContext(16)
12
print(context)
13