summaryrefslogtreecommitdiffstats
path: root/Lib/pathlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r--Lib/pathlib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index d70fde0..f0537cf 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -777,6 +777,9 @@ class PurePath(object):
return NotImplemented
return self._cparts >= other._cparts
+ def __class_getitem__(cls, type):
+ return cls
+
drive = property(attrgetter('_drv'),
doc="""The drive prefix (letter or UNC path), if any.""")