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:
parent
af162257d3
commit
44818d1a35
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user