mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46483: Remove __class_getitem__
from pathlib.PurePath
(GH-30848)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
0cbdd21311
commit
7ffe7ba30f
5 changed files with 4 additions and 14 deletions
|
@ -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.""")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue