From 0714b733eeec03102510d20a10363d858739047c Mon Sep 17 00:00:00 2001 From: Asher Foa Date: Mon, 1 May 2023 15:52:08 -0400 Subject: [PATCH] use f-string (#399) --- django_prometheus/testutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_prometheus/testutils.py b/django_prometheus/testutils.py index 5d127dfa..6529b606 100644 --- a/django_prometheus/testutils.py +++ b/django_prometheus/testutils.py @@ -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])