diff options
author | John L. Villalovos <john@sodarock.com> | 2022-01-13 11:17:40 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-01-13 11:17:40 -0800 |
commit | b07eece0a35dbc48076c9ec79f65f1e3fa17a872 (patch) | |
tree | 7a3109087cee26308c4359d4cdcdada8999d5b22 /gitlab/base.py | |
parent | a2e7c383e10509b6eb0fa8760727036feb0807c8 (diff) | |
download | gitlab-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/base.py')
-rw-r--r-- | gitlab/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/base.py b/gitlab/base.py index 96e770c..0706ffb 100644 --- a/gitlab/base.py +++ b/gitlab/base.py @@ -223,7 +223,7 @@ class RESTObject(object): path""" obj_id = self.get_id() if isinstance(obj_id, str): - obj_id = gitlab.utils._url_encode(obj_id) + obj_id = gitlab.utils.EncodedId(obj_id) return obj_id @property |