Skip to content

Commit 44818d1

Browse files
jimmodpgeorge
authored andcommitted
docs/library/network.rst: Simplify socket import.
Replace `import socket as socket` with `import socket`. Signed-off-by: Jim Mussared <[email protected]>
1 parent af16225 commit 44818d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/library/network.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For example::
2727
print(nic.ifconfig())
2828

2929
# now use socket as usual
30-
import socket as socket
30+
import socket
3131
addr = socket.getaddrinfo('micropython.org', 80)[0][-1]
3232
s = socket.socket()
3333
s.connect(addr)

0 commit comments

Comments
 (0)