summaryrefslogtreecommitdiffstats
path: root/Lib/pathlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r--Lib/pathlib.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index 3a7a124..fb78939 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -233,7 +233,7 @@ class _PathParents(Sequence):
return "<{}.parents>".format(type(self._path).__name__)
-class PurePath(object):
+class PurePath(os.PathLike):
"""Base class for manipulating paths without I/O.
PurePath represents a filesystem path and offers operations which
@@ -707,10 +707,6 @@ class PurePath(object):
return False
return True
-# Can't subclass os.PathLike from PurePath and keep the constructor
-# optimizations in PurePath.__slots__.
-os.PathLike.register(PurePath)
-
class PurePosixPath(PurePath):
"""PurePath subclass for non-Windows systems.