Browse Source

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

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

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/7677/head
Jim Mussared 3 years ago
committed by Damien George
parent
commit
44818d1a35
  1. 2
      docs/library/network.rst

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

Loading…
Cancel
Save