summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-06-01 17:50:40 +0200
committerGitHub <noreply@github.com>2022-06-01 17:50:40 +0200
commit3d000d3de86306faee063f4edf9f09aff7590791 (patch)
tree72c7a28c1719898124a440781a92e817287f4aea /gitlab
parent7119f2d228115fe83ab23612e189c9986bb9fd1b (diff)
parent96e994d9c5c1abd11b059fe9f0eec7dac53d2f3a (diff)
downloadgitlab-3d000d3de86306faee063f4edf9f09aff7590791.tar.gz
Merge pull request #2043 from python-gitlab/jlvillal/f-string
chore: require f-strings
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/base.py b/gitlab/base.py
index 8a5da4d..6e7d5c5 100644
--- a/gitlab/base.py
+++ b/gitlab/base.py
@@ -73,9 +73,9 @@ class RESTObject:
) -> None:
if not isinstance(attrs, dict):
raise GitlabParsingError(
- "Attempted to initialize RESTObject with a non-dictionary value: "
- "{!r}\nThis likely indicates an incorrect or malformed server "
- "response.".format(attrs)
+ f"Attempted to initialize RESTObject with a non-dictionary value: "
+ f"{attrs!r}\nThis likely indicates an incorrect or malformed server "
+ f"response."
)
self.__dict__.update(
{