diff options
| author | Nejc Habjan <hab.nejc@gmail.com> | 2021-11-05 21:01:58 +0100 |
|---|---|---|
| committer | John Villalovos <john@sodarock.com> | 2021-11-08 14:11:40 -0800 |
| commit | c0d881064f7c90f6a510db483990776ceb17b9bd (patch) | |
| tree | bbe635558a2bfb48fd64f24f48eea1c5b093a029 /gitlab/v4/objects/projects.py | |
| parent | 472b300154c5e59289d83f0b34d24bc52eb9b6da (diff) | |
| download | gitlab-c0d881064f7c90f6a510db483990776ceb17b9bd.tar.gz | |
refactor: use new-style formatting for named placeholders
Diffstat (limited to 'gitlab/v4/objects/projects.py')
| -rw-r--r-- | gitlab/v4/objects/projects.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py index 852cb97..c5ce717 100644 --- a/gitlab/v4/objects/projects.py +++ b/gitlab/v4/objects/projects.py @@ -87,7 +87,7 @@ class GroupProject(RESTObject): class GroupProjectManager(ListMixin, RESTManager): - _path = "/groups/%(group_id)s/projects" + _path = "/groups/{group_id}/projects" _obj_cls = GroupProject _from_parent_attrs = {"group_id": "id"} _list_filters = ( @@ -986,7 +986,7 @@ class ProjectFork(RESTObject): class ProjectForkManager(CreateMixin, ListMixin, RESTManager): - _path = "/projects/%(project_id)s/forks" + _path = "/projects/{project_id}/forks" _obj_cls = ProjectFork _from_parent_attrs = {"project_id": "id"} _list_filters = ( @@ -1035,7 +1035,7 @@ class ProjectRemoteMirror(SaveMixin, RESTObject): class ProjectRemoteMirrorManager(ListMixin, CreateMixin, UpdateMixin, RESTManager): - _path = "/projects/%(project_id)s/remote_mirrors" + _path = "/projects/{project_id}/remote_mirrors" _obj_cls = ProjectRemoteMirror _from_parent_attrs = {"project_id": "id"} _create_attrs = RequiredOptional( |
