From 44c37cbc1be2751fd035c32b3510fe1590a4f703 Mon Sep 17 00:00:00 2001 From: barneygale Date: Mon, 8 Jan 2024 18:06:17 +0000 Subject: [PATCH] Point to `os.path.isreserved()` in whatsnew deprecation notices. --- Doc/whatsnew/3.13.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 561c4e8e9aec03..0632db2f5e3df4 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -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. @@ -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`: