From 29c701b3d564b66d1e1f768d538a08836df14d52 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 19 Aug 2024 17:18:41 +0200 Subject: [PATCH] docstring/util/url --- spcd/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spcd/util.py b/spcd/util.py index 962d6fe..f4710b2 100644 --- a/spcd/util.py +++ b/spcd/util.py @@ -8,6 +8,7 @@ from rwx.log import stream as log def add_url_path(url: str, extra_path: str) -> str: + """Append an extra segment to an existing URL.""" parts = urlparse(url) parts = parts._replace(path=str(Path(parts.path) / extra_path)) return urlunparse(parts)