Skip to content

Commit 79cf8fd

Browse files
committed
Remove backticks around True and False
1 parent e8ea6ba commit 79cf8fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/pathlib.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ call fails (for example because the path doesn't exist).
965965

966966
If optional argument *top_down* is true or not specified, the triple for a
967967
directory is generated before the triples for any of its subdirectories
968-
(directories are walked top-down). If *top_down* is ``False``, the triple
968+
(directories are walked top-down). If *top_down* is false, the triple
969969
for a directory is generated after the triples for all of its subdirectories
970970
(directories are walked bottom-up). No matter the value of *top_down*, the
971971
list of subdirectories is retrieved before the tuples for the directory and
@@ -977,7 +977,7 @@ call fails (for example because the path doesn't exist).
977977
this can be used to prune the search, or to impose a specific order of visiting,
978978
or even to inform :meth:`Path.walk` about directories the caller creates or
979979
renames before it resumes :meth:`Path.walk` again. Modifying *dirnames* when
980-
*top_down* is ``False`` has no effect on the behavior of :meth:`Path.walk()`, since the
980+
*top_down* is false has no effect on the behavior of :meth:`Path.walk()`, since the
981981
directories in *dirnames* have already been generated by the time *dirnames*
982982
is yielded to the caller.
983983

@@ -1001,14 +1001,14 @@ call fails (for example because the path doesn't exist).
10011001
.. note::
10021002
:meth:`Path.walk` assumes the directories it walks are not been modified during
10031003
execution. For example, if a directory from *dirnames* has been replaced
1004-
with a symlink and *follow_symlinks* = ``False``, :meth:`Path.walk` will
1004+
with a symlink and *follow_symlinks* is false, :meth:`Path.walk` will
10051005
still try to descend into it. To prevent such behavior, remove directories
10061006
from *dirnames* as appropriate.
10071007

10081008
.. note::
10091009

10101010
Unlike :func:`os.walk`, :meth:`Path.walk` lists symlinks to directories into
1011-
*filenames* if *follow_symlinks* is ``False``.
1011+
*filenames* if *follow_symlinks* is false.
10121012

10131013
This example displays the number of bytes used by all files in each directory,
10141014
while ignoring ``__pycache__`` directories.

0 commit comments

Comments
 (0)