diff options
author | 2023-12-15 15:41:31 -0500 | |
---|---|---|
committer | 2023-12-15 15:53:59 -0500 | |
commit | 5f8628d611c03f77bbcf245c025b85cf60b88431 (patch) | |
tree | 18db2e59989d5e9cfd4f2bf9530efaeb3554a290 | |
parent | lddtree: Add --wrapper-preload (diff) | |
download | pax-utils-5f8628d611c03f77bbcf245c025b85cf60b88431.tar.gz pax-utils-5f8628d611c03f77bbcf245c025b85cf60b88431.tar.bz2 pax-utils-5f8628d611c03f77bbcf245c025b85cf60b88431.zip |
lddtree: use f-string in warn message
Signed-off-by: Mike Frysinger <vapier@chromium.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | lddtree.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ from elftools.elf.elffile import ELFFile def warn(msg: Any, prefix: Optional[str] = "warning") -> None: """Write |msg| to stderr with a |prefix| before it""" - print("%s: %s: %s" % (os.path.basename(sys.argv[0]), prefix, msg), file=sys.stderr) + print(f"{os.path.basename(sys.argv[0])}: {prefix}: {msg}", file=sys.stderr) def err(msg: Any, status: Optional[int] = 1) -> None: |