From 6f5cd1d7c5f76d7d4da42171fdc30daf9fe3996e Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 23 Jul 2020 12:03:21 -0700 Subject: [PATCH] change to use f-string --- jc/parsers/traceroute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/traceroute.py b/jc/parsers/traceroute.py index 7f858b58..0d7950a6 100644 --- a/jc/parsers/traceroute.py +++ b/jc/parsers/traceroute.py @@ -188,7 +188,7 @@ def loads(data): elif probe_rtt_annotation[1]: probe_rtt = None else: - message = "Expected probe RTT or *. Got: '{}'".format(probe_rtt_annotation[0]) + message = f"Expected probe RTT or *. Got: '{probe_rtt_annotation[0]}'" raise ParseError(message) probe_annotation = probe_rtt_annotation[2] or None