summaryrefslogtreecommitdiff
path: root/gitlab/v4/cli.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-01-13 11:17:40 -0800
committerJohn L. Villalovos <john@sodarock.com>2022-01-13 11:17:40 -0800
commitb07eece0a35dbc48076c9ec79f65f1e3fa17a872 (patch)
tree7a3109087cee26308c4359d4cdcdada8999d5b22 /gitlab/v4/cli.py
parenta2e7c383e10509b6eb0fa8760727036feb0807c8 (diff)
downloadgitlab-b07eece0a35dbc48076c9ec79f65f1e3fa17a872.tar.gz
chore: replace usage of utils._url_encode() with utils.EncodedId()jlvillal/encoded_id
utils.EncodedId() has basically the same functionalityy of using utils._url_encode(). So remove utils._url_encode() as we don't need it.
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r--gitlab/v4/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py
index a76b133..504b7a9 100644
--- a/gitlab/v4/cli.py
+++ b/gitlab/v4/cli.py
@@ -75,7 +75,7 @@ class GitlabCLI(object):
if key not in self.args:
continue
- self.parent_args[key] = gitlab.utils._url_encode(self.args[key])
+ self.parent_args[key] = gitlab.utils.EncodedId(self.args[key])
# If we don't delete it then it will be added to the URL as a query-string
del self.args[key]