summaryrefslogtreecommitdiff
path: root/docs/library/uerrno.rst
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2018-02-20 17:34:59 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2018-02-20 17:34:59 -0800
commit20dd3b1e434f57a0609fd5306f47863396d1022e (patch)
tree47d7be30787716fcd95e01723942cdff06b0bd85 /docs/library/uerrno.rst
parentee90056866d2a8a1e0eec21f0ce5c60b741ea411 (diff)
Delete a bunch of docs, drivers and examples not relevant to CircuitPython.
This fixes #345 and fixes #215.
Diffstat (limited to 'docs/library/uerrno.rst')
-rw-r--r--docs/library/uerrno.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/library/uerrno.rst b/docs/library/uerrno.rst
index 0cdcc8448..72f71f0aa 100644
--- a/docs/library/uerrno.rst
+++ b/docs/library/uerrno.rst
@@ -1,13 +1,14 @@
:mod:`uerrno` -- system error codes
===================================
+.. include:: ../templates/unsupported_in_circuitpython.inc
+
.. module:: uerrno
:synopsis: system error codes
-|see_cpython_module| :mod:`python:errno`.
+|see_cpython_module| :mod:`cpython:errno`.
This module provides access to symbolic error codes for `OSError` exception.
-A particular inventory of codes depends on `MicroPython port`.
Constants
---------
@@ -15,12 +16,11 @@ Constants
.. data:: EEXIST, EAGAIN, etc.
Error codes, based on ANSI C/POSIX standard. All error codes start with
- "E". As mentioned above, inventory of the codes depends on
- `MicroPython port`. Errors are usually accessible as ``exc.args[0]``
- where `exc` is an instance of `OSError`. Usage example::
+ "E". Errors are usually accessible as ``exc.args[0]``
+ where ``exc`` is an instance of `OSError`. Usage example::
try:
- uos.mkdir("my_dir")
+ os.mkdir("my_dir")
except OSError as exc:
if exc.args[0] == uerrno.EEXIST:
print("Directory already exists")