Skip to content

Commit 335921b

Browse files
committed
Fix lint
1 parent 0c16f5f commit 335921b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Doc/library/os.path.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ the :mod:`glob` module.)
424424
In particular, :exc:`FileNotFoundError` is raised if *path* does not exist,
425425
or another :exc:`OSError` if it is otherwise inaccessible.
426426

427-
If *strict* is the string `'allow_missing'`, errors other than
427+
If *strict* is the string ``'allow_missing'``, errors other than
428428
:exc:`FileNotFoundError` are re-raised (as with ``strict=True``).
429429
Thus, the returned path will not contain any symbolic links, but the named
430430
file and some of its parent directories may be missing.

Doc/library/tarfile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ reused in custom filters:
10791079

10801080
- Normalize link targets (:attr:`TarInfo.linkname`) using
10811081
:func:`os.path.normpath`.
1082-
Note that this removes internal `..` components, which may change the
1082+
Note that this removes internal ``..`` components, which may change the
10831083
meaning of the link if the path in :attr:`!TarInfo.linkname` traverses
10841084
symbolic links.
10851085

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ os.path
116116
-------
117117

118118
* The *strict* parameter to :func:`os.path.realpath` accepts a new value,
119-
`'allow_missing'`.
119+
``'allow_missing'``.
120120
If used, errors other than :exc:`FileNotFoundError` will be re-raised;
121121
the resulting path can be missing but it will be free of symlinks.
122122
(Contributed by Petr Viktorin for :cve:`2025-4517`.)

0 commit comments

Comments
 (0)