diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-11-01 19:22:18 +0100 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2021-11-02 07:03:33 +0100 |
commit | 30fa865cfe145d172b7061cb2af03837b3d1d312 (patch) | |
tree | 414f0a060d4dce56310327e07cbdcf7f41f39fc3 /gitlab/v4/objects/issues.py | |
parent | c7fdad42f68927d79e0d1963ade3324370b9d0e2 (diff) | |
download | gitlab-refactor/f-strings.tar.gz |
refactor: use f-strings for string formattingrefactor/f-strings
Diffstat (limited to 'gitlab/v4/objects/issues.py')
-rw-r--r-- | gitlab/v4/objects/issues.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/v4/objects/issues.py b/gitlab/v4/objects/issues.py index 9272908..c3d1d95 100644 --- a/gitlab/v4/objects/issues.py +++ b/gitlab/v4/objects/issues.py @@ -127,7 +127,7 @@ class ProjectIssue( GitlabAuthenticationError: If authentication is not correct GitlabUpdateError: If the issue could not be moved """ - path = "%s/%s/move" % (self.manager.path, self.get_id()) + path = f"{self.manager.path}/{self.get_id()}/move" data = {"to_project_id": to_project_id} server_data = self.manager.gitlab.http_post(path, post_data=data, **kwargs) self._update_attrs(server_data) @@ -147,7 +147,7 @@ class ProjectIssue( Returns: list: The list of merge requests. """ - path = "%s/%s/related_merge_requests" % (self.manager.path, self.get_id()) + path = f"{self.manager.path}/{self.get_id()}/related_merge_requests" return self.manager.gitlab.http_get(path, **kwargs) @cli.register_custom_action("ProjectIssue") @@ -165,7 +165,7 @@ class ProjectIssue( Returns: list: The list of merge requests. """ - path = "%s/%s/closed_by" % (self.manager.path, self.get_id()) + path = f"{self.manager.path}/{self.get_id()}/closed_by" return self.manager.gitlab.http_get(path, **kwargs) |