Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0c5a121

Browse filesBrowse files
chore: remove use of '%' string formatter in gitlab/utils.py
Replace usage with f-string
1 parent dea9435 commit 0c5a121
Copy full SHA for 0c5a121

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎gitlab/utils.py‎

Copy file name to clipboardExpand all lines: gitlab/utils.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,6 @@ def _validate_attrs(
183183
)
184184
if not exclusives:
185185
raise AttributeError(
186-
"Must provide one of these attributes: %(attrs)s"
187-
% {"attrs": ", ".join(attributes.exclusive)}
186+
f"Must provide one of these attributes: "
187+
f"{', '.join(attributes.exclusive)}"
188188
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.