8000 docs/library/usocket: Move socket.error to its own section. · sparkfun/circuitpython@ccaad53 · GitHub
[go: up one dir, main page]

Skip to content

Commit ccaad53

Browse files
committed
docs/library/usocket: Move socket.error to its own section.
It's too minor a point to start the module description with it.
1 parent 478887c commit ccaad53

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/library/usocket.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99

1010
This module provides access to the BSD socket interface.
1111

12-
.. admonition:: Difference to CPython
13-
:class: attention
14-
15-
CPython used to have a ``socket.error`` exception which is now deprecated,
16-
and is an alias of `OSError`. In MicroPython, use `OSError` directly.
17-
1812
.. admonition:: Difference to CPython
1913
:class: attention
2014

@@ -250,3 +244,13 @@ Methods
250244
the length of *buf*.
251245

252246
Return value: number of bytes written.
247+
248+
.. exception:: socket.error
249+
250+
MicroPython does NOT have this exception.
251+
252+
.. admonition:: Difference to CPython
253+
:class: attention
254+
255+
CPython used to have a ``socket.error`` exception which is now deprecated,
256+
and is an alias of `OSError`. In MicroPython, use `OSError` directly.

0 commit comments

Comments
 (0)
0