summaryrefslogtreecommitdiffstats
path: root/Lib/pathlib/_local.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-05-14 20:14:07 (GMT)
committerGitHub <noreply@github.com>2024-05-14 20:14:07 (GMT)
commit7d8725ac6f3304677d71dabdb7c184e98a62d864 (patch)
tree4c19aee527e9afac150a03db903c0281f5ee9b6a /Lib/pathlib/_local.py
parentfbe6a0988ff08aef29c4649527d5d620d77ca4a2 (diff)
downloadcpython-7d8725ac6f3304677d71dabdb7c184e98a62d864.zip
cpython-7d8725ac6f3304677d71dabdb7c184e98a62d864.tar.gz
cpython-7d8725ac6f3304677d71dabdb7c184e98a62d864.tar.bz2
GH-74033: Drop deprecated `pathlib.Path` keyword arguments (#118793)
Remove support for supplying keyword arguments to `pathlib.Path()`. This has been deprecated since Python 3.12.
Diffstat (limited to 'Lib/pathlib/_local.py')
-rw-r--r--Lib/pathlib/_local.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/pathlib/_local.py b/Lib/pathlib/_local.py
index 7dc0719..011144a 100644
--- a/Lib/pathlib/_local.py
+++ b/Lib/pathlib/_local.py
@@ -483,13 +483,6 @@ class Path(PathBase, PurePath):
def _unsupported_msg(cls, attribute):
return f"{cls.__name__}.{attribute} is unsupported on this system"
- def __init__(self, *args, **kwargs):
- if kwargs:
- msg = ("support for supplying keyword arguments to pathlib.PurePath "
- "is deprecated and scheduled for removal in Python {remove}")
- warnings._deprecated("pathlib.PurePath(**kwargs)", msg, remove=(3, 14))
- super().__init__(*args)
-
def __new__(cls, *args, **kwargs):
if cls is Path:
cls = WindowsPath if os.name == 'nt' else PosixPath