diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 07:23:36 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 07:23:36 -0500 |
commit | 1b94835aac3268a32bfa4ce0df585dbb97457a06 (patch) | |
tree | adbc0aa1467460588e77aa6d574e1ae9abb74f0f /coverage/results.py | |
parent | 79f9f4575321fafc2ef770e3255f874db3d4b037 (diff) | |
download | python-coveragepy-git-1b94835aac3268a32bfa4ce0df585dbb97457a06.tar.gz |
style: convert more string formatting to f-strings
Diffstat (limited to 'coverage/results.py')
-rw-r--r-- | coverage/results.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/results.py b/coverage/results.py index 11c4b09b..64e5130c 100644 --- a/coverage/results.py +++ b/coverage/results.py @@ -317,7 +317,7 @@ def format_lines(statements, lines, arcs=None): for ex in sorted(exits): if line not in lines and ex not in lines: dest = (ex if ex > 0 else "exit") - line_items.append((line, "%d->%s" % (line, dest))) + line_items.append((line, f"{line}->{dest}")) ret = ', '.join(t[-1] for t in sorted(line_items)) return ret |