From 44818d1a35315c4dde34050eb0aac98866f9eb15 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Mon, 16 Aug 2021 23:08:20 +1000 Subject: [PATCH] docs/library/network.rst: Simplify socket import. Replace `import socket as socket` with `import socket`. Signed-off-by: Jim Mussared --- docs/library/network.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/library/network.rst b/docs/library/network.rst index c188bb3135..1bd7e303bb 100644 --- a/docs/library/network.rst +++ b/docs/library/network.rst @@ -27,7 +27,7 @@ For example:: print(nic.ifconfig()) # now use socket as usual - import socket as socket + import socket addr = socket.getaddrinfo('micropython.org', 80)[0][-1] s = socket.socket() s.connect(addr)