Skip to content

Commit

Permalink
use f-string (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
asherf authored May 1, 2023
1 parent 608823d commit 0714b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_prometheus/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@ def format_vector(vector):
"""Formats a list of (labels, value) where labels is a dict into a
human-readable representation.
"""
return "\n".join(["{} = {}".format(format_labels(labels), value) for labels, value in vector])
return "\n".join([f"{format_labels(labels)} = {value}" for labels, value in vector])

0 comments on commit 0714b73

Please sign in to comment.