summaryrefslogtreecommitdiff
path: root/gitlab/utils.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-05-31 17:43:22 -0700
committerJohn L. Villalovos <john@sodarock.com>2022-05-31 17:43:22 -0700
commit0c5a1213ba3bb3ec4ed5874db4588d21969e9e80 (patch)
tree04a21a9f1da6fe03257bc2240c5e43fb8951945f /gitlab/utils.py
parentdea9435f21ededac998ba878a4fd2def698a3066 (diff)
downloadgitlab-0c5a1213ba3bb3ec4ed5874db4588d21969e9e80.tar.gz
chore: remove use of '%' string formatter in `gitlab/utils.py`
Replace usage with f-string
Diffstat (limited to 'gitlab/utils.py')
-rw-r--r--gitlab/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/utils.py b/gitlab/utils.py
index 7c94569..3cdd967 100644
--- a/gitlab/utils.py
+++ b/gitlab/utils.py
@@ -183,6 +183,6 @@ def _validate_attrs(
)
if not exclusives:
raise AttributeError(
- "Must provide one of these attributes: %(attrs)s"
- % {"attrs": ", ".join(attributes.exclusive)}
+ f"Must provide one of these attributes: "
+ f"{', '.join(attributes.exclusive)}"
)