summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/branches.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects/branches.py')
-rw-r--r--gitlab/v4/objects/branches.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects/branches.py b/gitlab/v4/objects/branches.py
index 5bd8442..407765c 100644
--- a/gitlab/v4/objects/branches.py
+++ b/gitlab/v4/objects/branches.py
@@ -14,7 +14,7 @@ class ProjectBranch(ObjectDeleteMixin, RESTObject):
class ProjectBranchManager(NoUpdateMixin, RESTManager):
- _path = "/projects/%(project_id)s/repository/branches"
+ _path = "/projects/{project_id}/repository/branches"
_obj_cls = ProjectBranch
_from_parent_attrs = {"project_id": "id"}
_create_attrs = RequiredOptional(required=("branch", "ref"))
@@ -25,7 +25,7 @@ class ProjectProtectedBranch(ObjectDeleteMixin, RESTObject):
class ProjectProtectedBranchManager(NoUpdateMixin, RESTManager):
- _path = "/projects/%(project_id)s/protected_branches"
+ _path = "/projects/{project_id}/protected_branches"
_obj_cls = ProjectProtectedBranch
_from_parent_attrs = {"project_id": "id"}
_create_attrs = RequiredOptional(