Skip to content

Commit 714d672

Browse files
author
mathioud
committed
imrove doctest
Signed-off-by: mathioud <georgios.mathioudakis@here.com>
1 parent 06bd3c6 commit 714d672

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/python_inspector/utils_pypi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,9 @@ def resolve_relative_url(package_url, url):
16111611
16121612
Returns:
16131613
str: The resolved URL.
1614+
Examples:
1615+
>>> resolve_relative_url("https://example.com/package", "../path/file.txt")
1616+
'https://example.com/path/file.txt'
16141617
"""
16151618
if not url.startswith(("http://", "https://")):
16161619
base_url = "/".join(package_url.split("/")[:-1]) # Extract base URL

0 commit comments

Comments
 (0)