From 443b93482e29fecc12fdbd2329427b37b05ba425 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sun, 18 Apr 2021 14:55:37 -0700 Subject: chore: remove unused function sanitize_parameters() The function sanitize_parameters() was used when the v3 API was in use. Since v3 API support has been removed there are no more users of this function. --- gitlab/utils.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gitlab/utils.py') diff --git a/gitlab/utils.py b/gitlab/utils.py index 45a4af8..91b3fb0 100644 --- a/gitlab/utils.py +++ b/gitlab/utils.py @@ -60,14 +60,6 @@ def clean_str_id(id: str) -> str: return quote(id, safe="") -def sanitize_parameters(value): - if isinstance(value, dict): - return dict((k, sanitize_parameters(v)) for k, v in value.items()) - if isinstance(value, str): - return quote(value, safe="") - return value - - def sanitized_url(url: str) -> str: parsed = urlparse(url) new_path = parsed.path.replace(".", "%2E") -- cgit v1.2.1