From ec5ebee6accafbdfd889cbeb9d81d393b787f226 Mon Sep 17 00:00:00 2001 From: Yomguithereal Date: Fri, 5 May 2023 17:58:06 +0200 Subject: [PATCH] Fixing format_url for windaube --- ural/format_url.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ural/format_url.py b/ural/format_url.py index c0eaf659..397333d7 100644 --- a/ural/format_url.py +++ b/ural/format_url.py @@ -12,8 +12,6 @@ except ImportError: Iterable = (tuple, list, set, frozenset) -from os.path import join - from ural.utils import string_type, quote @@ -34,9 +32,9 @@ def format_url( # Path if isinstance(path, string_type): - url = join(base_url, path.lstrip("/")) + url = base_url.rstrip("/") + "/" + path.lstrip("/") elif isinstance(path, Iterable): - url = join(base_url, "/".join(path).lstrip("/")) + url = base_url.rstrip("/") + "/" + "/".join(path).lstrip("/") elif path is not None: raise TypeError("path should be a string or an iterable of path items")