diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-02-03 09:25:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 09:25:10 (GMT) |
commit | 7ffe7ba30fc051014977c6f393c51e57e71a6648 (patch) | |
tree | 0f1e476fdbac481a29eab473b2531a21e8306a9b /Lib/pathlib.py | |
parent | 0cbdd2131195b0d313762968f604e80a3e65ca9f (diff) | |
download | cpython-7ffe7ba30fc051014977c6f393c51e57e71a6648.zip cpython-7ffe7ba30fc051014977c6f393c51e57e71a6648.tar.gz cpython-7ffe7ba30fc051014977c6f393c51e57e71a6648.tar.bz2 |
bpo-46483: Remove `__class_getitem__` from `pathlib.PurePath` (GH-30848)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r-- | Lib/pathlib.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py index 920e1f4..7f4210e 100644 --- a/Lib/pathlib.py +++ b/Lib/pathlib.py @@ -12,7 +12,6 @@ from errno import ENOENT, ENOTDIR, EBADF, ELOOP from operator import attrgetter from stat import S_ISDIR, S_ISLNK, S_ISREG, S_ISSOCK, S_ISBLK, S_ISCHR, S_ISFIFO from urllib.parse import quote_from_bytes as urlquote_from_bytes -from types import GenericAlias __all__ = [ @@ -604,8 +603,6 @@ class PurePath(object): return NotImplemented return self._cparts >= other._cparts - __class_getitem__ = classmethod(GenericAlias) - drive = property(attrgetter('_drv'), doc="""The drive prefix (letter or UNC path), if any.""") |