Debian Codegraph @

testing/web-platform/tests/tools/third_party/atomicwrites/docs/index.rst

raw
1 .. include:: ../README.rst
2
3 .. module:: atomicwrites
4
5 API
6 ===
7
8 .. autofunction:: atomic_write
9
10
11 Errorhandling
12 -------------
13
14 All filesystem errors are subclasses of :py:exc:`OSError`.
15
16 - On UNIX systems, errors from the Python stdlib calls are thrown.
17 - On Windows systems, errors from Python's ``ctypes`` are thrown.
18
19 In either case, the ``errno`` attribute on the thrown exception maps to an
20 errorcode in the ``errno`` module.
21
22 Low-level API
23 -------------
24
25 .. autofunction:: replace_atomic
26
27 .. autofunction:: move_atomic
28
29 .. autoclass:: AtomicWriter
30 :members:
31
32 License
33 =======
34
35 .. include:: ../LICENSE