Skip to content

Commit 0714b73

Browse files
authored
use f-string (#399)
1 parent 608823d commit 0714b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_prometheus/testutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@ def format_vector(vector):
196196
"""Formats a list of (labels, value) where labels is a dict into a
197197
human-readable representation.
198198
"""
199-
return "\n".join(["{} = {}".format(format_labels(labels), value) for labels, value in vector])
199+
return "\n".join([f"{format_labels(labels)} = {value}" for labels, value in vector])

0 commit comments

Comments
 (0)