Skip to content

Commit

Permalink
preen
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Nov 17, 2024
1 parent ac5a3e8 commit a030acc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions yarl/_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,10 +988,7 @@ def _make_child(self, paths: "Sequence[str]", encoded: bool = False) -> "URL":
segments = path.split("/")
segments.reverse()
# remove trailing empty segment for all but the last path
if not last and segments[0] == "":
parsed += segments[1:]
else:
parsed += segments
parsed += segments[1:] if not last and segments[0] == "" else segments
parsed.reverse()

if (path := self._path) and (old_path_segments := path.split("/")):
Expand Down

0 comments on commit a030acc

Please sign in to comment.