summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/features.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/objects/features.py
parenta2e7c383e10509b6eb0fa8760727036feb0807c8 (diff)
downloadgitlab-jlvillal/encoded_id.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/objects/features.py')
-rw-r--r--gitlab/v4/objects/features.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects/features.py b/gitlab/v4/objects/features.py
index 69689fa..1631a26 100644
--- a/gitlab/v4/objects/features.py
+++ b/gitlab/v4/objects/features.py
@@ -52,7 +52,7 @@ class FeatureManager(ListMixin, DeleteMixin, RESTManager):
Returns:
The created/updated attribute
"""
- name = utils._url_encode(name)
+ name = utils.EncodedId(name)
path = f"{self.path}/{name}"
data = {
"value": value,