summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-11-11 07:23:36 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-11-11 07:23:36 -0500
commit1b94835aac3268a32bfa4ce0df585dbb97457a06 (patch)
treeadbc0aa1467460588e77aa6d574e1ae9abb74f0f /igor.py
parent79f9f4575321fafc2ef770e3255f874db3d4b037 (diff)
downloadpython-coveragepy-git-1b94835aac3268a32bfa4ce0df585dbb97457a06.tar.gz
style: convert more string formatting to f-strings
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/igor.py b/igor.py
index 12e63f09..05788148 100644
--- a/igor.py
+++ b/igor.py
@@ -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: