Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a24a78

Browse files
committed
Revert "Maintain _drv, _root, _tail_cached values in children."
This reverts commit 38360dc.
1 parent 38360dc commit 7a24a78

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Lib/pathlib/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,6 @@ def _make_child_entry(self, entry):
282282
# Transform an entry yielded from _scandir() into a path object.
283283
path = self.with_segments(entry.path)
284284
path._str = entry.name if str(self) == '.' else entry.path
285-
path._drv = self.drive
286-
path._root = self.root
287-
path._tail_cached = self._tail + [entry.name]
288285
return path
289286

290287
def absolute(self):

0 commit comments

Comments
 (0)