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 /igor.py | |
parent | 79f9f4575321fafc2ef770e3255f874db3d4b037 (diff) | |
download | python-coveragepy-git-1b94835aac3268a32bfa4ce0df585dbb97457a06.tar.gz |
style: convert more string formatting to f-strings
Diffstat (limited to 'igor.py')
-rw-r--r-- | igor.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -282,14 +282,14 @@ def do_check_eol(): for n, line in enumerate(f, start=1): if crlf: if b"\r" in line: - print("%s@%d: CR found" % (fname, n)) + print(f"{fname}@{n}: CR found") return if trail_white: line = line[:-1] if not crlf: line = line.rstrip(b'\r') if line.rstrip() != line: - print("%s@%d: trailing whitespace found" % (fname, n)) + print(f"{fname}@{n}: trailing whitespace found") return if line is not None and not line.strip(): @@ -391,7 +391,7 @@ def main(args): verb = args.pop(0) handler = globals().get('do_'+verb) if handler is None: - print("*** No handler for %r" % verb) + print(f"*** No handler for {verb!r}") return 1 star, num_args = analyze_args(handler) if star: |