summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-08-04 18:06:38 +0200
committerGitHub <noreply@github.com>2022-08-04 18:06:38 +0200
commit9e0b60fb36c64d57c14926c0801ecf91215707bf (patch)
tree9485d56dc23fde872124ad6b0debc24ce8872de6
parentd263f57a34a58d44531e3abbdbfedf354b0c70ca (diff)
parent6d1b62d4b248c4c021a59cd234c3a2b19e6fad07 (diff)
downloadgitlab-9e0b60fb36c64d57c14926c0801ecf91215707bf.tar.gz
Merge pull request #2221 from python-gitlab/jlvillal/unparse
chore: use `urlunparse` instead of string replace
-rw-r--r--gitlab/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/client.py b/gitlab/client.py
index b3223e5..e3290e1 100644
--- a/gitlab/client.py
+++ b/gitlab/client.py
@@ -685,7 +685,7 @@ class Gitlab:
params = parse.parse_qs(parsed.query)
utils.copy_dict(src=query_data, dest=params)
- url = raw_url.replace(parsed.query, "").strip("?")
+ url = parse.urlunparse(parsed._replace(query=""))
# Deal with kwargs: by default a user uses kwargs to send data to the
# gitlab server, but this generates problems (python keyword conflicts