Skip to content
Myr

Docs: minor fixes to atomic type support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Julen Ruiz Aizpuru · committed by Julen Ruiz Aizpuru · parent 0b27ddf · Browse files · 2 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−5 removed

  • other:+5 added−5 removed

2 files+5 added−5 removed

modified:click/types.py+2 added-2 removed
233 unmodified lines
234 The `lazy` flag controls if the file should be opened immediately or235 upon first IO. The default is to be non lazy for standard input and236 output streams as well as files opened for reading, lazy otherwise.237238 Starting with Click 2.0 files can also be opened atomically in which238 Starting with click 2.0 files can also be opened atomically in which239 case all writes go into a separate file in the same folder and upon240 completion the file will be moved over to the original location. This241 is useful if a file is modified that is regularly read by other users.241 is useful if a file regularly read by other users is modified.242243 See :ref:`file-args` for more information.244 """245 name = 'filename'
186 unmodified lines
modified:docs/arguments.rst+3 added-3 removed
131 unmodified lines
132necessary for manually prompting with the :func:`prompt` function as you133do not know if a stream like stdout was openend (which was already open134before) or a real file that needs closing.135136Starting with Click 2.0 it's also possible to open files in atomic mode by136Starting with click 2.0 it's also possible to open files in atomic mode by137passing ``atomic=True``. In atomic mode all writes go into a separate138file in the same folder and upon completion the file will be moved over to139the original location. This is useful if a file is modified that is140regularly read by other users.139the original location. This is useful if a file regularly read by other140users is modified.141142Environment Variables143---------------------144
55 unmodified lines