File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ the :mod:`glob` module.)
424
424
In particular, :exc: `FileNotFoundError ` is raised if *path * does not exist,
425
425
or another :exc: `OSError ` if it is otherwise inaccessible.
426
426
427
- If *strict * is the string `'allow_missing' `, errors other than
427
+ If *strict * is the string `` 'allow_missing' ` `, errors other than
428
428
:exc: `FileNotFoundError ` are re-raised (as with ``strict=True ``).
429
429
Thus, the returned path will not contain any symbolic links, but the named
430
430
file and some of its parent directories may be missing.
Original file line number Diff line number Diff line change @@ -1079,7 +1079,7 @@ reused in custom filters:
1079
1079
1080
1080
- Normalize link targets (:attr: `TarInfo.linkname `) using
1081
1081
: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
1083
1083
meaning of the link if the path in :attr: `!TarInfo.linkname ` traverses
1084
1084
symbolic links.
1085
1085
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ os.path
116
116
-------
117
117
118
118
* The *strict * parameter to :func: `os.path.realpath ` accepts a new value,
119
- `'allow_missing' `.
119
+ `` 'allow_missing' ` `.
120
120
If used, errors other than :exc: `FileNotFoundError ` will be re-raised;
121
121
the resulting path can be missing but it will be free of symlinks.
122
122
(Contributed by Petr Viktorin for :cve: `2025-4517 `.)
You can’t perform that action at this time.
0 commit comments