Skip to content

Commit

Permalink
touch ups
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 22, 2024
1 parent 56e57cc commit 4dc41af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarl/_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def calculate_relative_path(target: str, base: str) -> str:
target_path = PurePosixPath(target)
base_path = PurePosixPath(base)

if not base[-1] == "/":
if base[-1] != "/":
base_path = base_path.parent

target_paths = {target_path, *target_path.parents}
Expand Down

0 comments on commit 4dc41af

Please sign in to comment.