docs/library/network.rst: Simplify socket import.

Replace `import socket as socket` with `import socket`.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared 2021-08-16 23:08:20 +10:00 committed by Damien George
parent af162257d3
commit 44818d1a35
1 changed files with 1 additions and 1 deletions

View File

@ -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)