diff options
Diffstat (limited to 'examples/network/http_client_ssl.py')
-rw-r--r-- | examples/network/http_client_ssl.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/examples/network/http_client_ssl.py b/examples/network/http_client_ssl.py index 83f685fdf3..323971c0ee 100644 --- a/examples/network/http_client_ssl.py +++ b/examples/network/http_client_ssl.py @@ -1,17 +1,11 @@ -try: - import usocket as _socket -except: - import _socket -try: - import ussl as ssl -except: - import ssl +import socket +import ssl def main(use_stream=True): - s = _socket.socket() + s = socket.socket() - ai = _socket.getaddrinfo("google.com", 443) + ai = socket.getaddrinfo("google.com", 443) print("Address infos:", ai) addr = ai[0][-1] |