Skip to content

Commit

Permalink
Point to os.path.isreserved() in whatsnew deprecation notices.
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Jan 8, 2024
1 parent 9e2d21f commit 44c37cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ Deprecated
* :mod:`pathlib`:

* :meth:`pathlib.PurePath.is_reserved` is deprecated and scheduled for
removal in Python 3.15.
removal in Python 3.15. Use :func:`os.path.isreserved` to detect reserved
paths on Windows.

* :mod:`sys`: :func:`sys._enablelegacywindowsfsencoding` function.
Replace it with :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment variable.
Expand Down Expand Up @@ -700,7 +701,8 @@ Pending Removal in Python 3.15
* :mod:`pathlib`:

* :meth:`pathlib.PurePath.is_reserved` is deprecated and scheduled for
removal in Python 3.15.
removal in Python 3.15. Use :func:`os.path.isreserved` to detect reserved
paths on Windows.

* :class:`typing.NamedTuple`:

Expand Down

0 comments on commit 44c37cb

Please sign in to comment.