docs/library/usocket: Move socket.error to its own section.

It's too minor a point to start the module description with it.
This commit is contained in:
Paul Sokolovsky 2017-08-20 09:04:48 +03:00
parent 478887c62f
commit ccaad53270

View File

@ -9,12 +9,6 @@
This module provides access to the BSD socket interface.
.. admonition:: Difference to CPython
:class: attention
CPython used to have a ``socket.error`` exception which is now deprecated,
and is an alias of `OSError`. In MicroPython, use `OSError` directly.
.. admonition:: Difference to CPython
:class: attention
@ -250,3 +244,13 @@ Methods
the length of *buf*.
Return value: number of bytes written.
.. exception:: socket.error
MicroPython does NOT have this exception.
.. admonition:: Difference to CPython
:class: attention
CPython used to have a ``socket.error`` exception which is now deprecated,
and is an alias of `OSError`. In MicroPython, use `OSError` directly.