Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lie to Sphinx.
  • Loading branch information
serhiy-storchaka committed Dec 13, 2023
commit 64883ace5f7482398657b7cb4b999b728eaddbb2
4 changes: 2 additions & 2 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,7 @@ features:
Accepts a :term:`path-like object`.


.. function:: chmod(path, mode, *, dir_fd=None, follow_symlinks=(os.name != 'nt'))
.. function:: chmod(path, mode, *, dir_fd=None, follow_symlinks=True)

Change the mode of *path* to the numeric *mode*. *mode* may take one of the
following values (as defined in the :mod:`stat` module) or bitwise ORed
Expand Down Expand Up @@ -2062,7 +2062,7 @@ features:
Although Windows supports :func:`chmod`, you can only set the file's
read-only flag with it (via the ``stat.S_IWRITE`` and ``stat.S_IREAD``
constants or a corresponding integer value). All other bits are ignored.
By default, :func:`chmod` on Windows does not follow symlinks.
The default value of *follow_symlinks* on Windows is ``False``.

The function is limited on Emscripten and WASI, see
:ref:`wasm-availability` for more information.
Expand Down