From 2f6354a9e66ca3d58520bde004df49ed2b34d155 Mon Sep 17 00:00:00 2001 From: barneygale Date: Thu, 28 Dec 2023 03:19:49 +0000 Subject: [PATCH] Make `_resolving` and ABC-only thing. --- Lib/pathlib/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Lib/pathlib/__init__.py b/Lib/pathlib/__init__.py index 329cb8a45f29cd..6e86249f6c7145 100644 --- a/Lib/pathlib/__init__.py +++ b/Lib/pathlib/__init__.py @@ -123,7 +123,6 @@ def __init__(self, *args): paths.append(path) # Avoid calling super().__init__, as an optimisation self._raw_paths = paths - self._resolving = False def __reduce__(self): # Using the parts tuple helps share interned path parts @@ -202,9 +201,7 @@ def parent(self): tail = self._tail if not tail: return self - path = self._from_parsed_parts(drv, root, tail[:-1]) - path._resolving = self._resolving - return path + return self._from_parsed_parts(drv, root, tail[:-1]) @property def parents(self):