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/cli.py | |
parent | 472b300154c5e59289d83f0b34d24bc52eb9b6da (diff) | |
download | gitlab-c0d881064f7c90f6a510db483990776ceb17b9bd.tar.gz |
refactor: use new-style formatting for named placeholders
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index 6cffce7..1b98193 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -53,7 +53,7 @@ class GitlabCLI(object): # the class _path attribute, and replace the value with the result. if TYPE_CHECKING: assert self.mgr_cls._path is not None - self.mgr_cls._path = self.mgr_cls._path % self.args + self.mgr_cls._path = self.mgr_cls._path.format(**self.args) self.mgr = self.mgr_cls(gl) if self.mgr_cls._types: |