Skip to content

Commit

Permalink
Make _resolving and ABC-only thing.
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Dec 28, 2023
1 parent f933270 commit 2f6354a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Lib/pathlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 2f6354a

Please sign in to comment.