aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-06-02 16:40:44 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-06-02 16:40:44 +0100
commitac2b274eb9f1787a31feed1c1a3711b4b6e4cbef (patch)
tree2afc7d3a7db050d77364be2f004c43f1e016f147
parent8e512c19b4caec4f08788d609f2e8314c41788b6 (diff)
downloadubox-msx-lib-main.tar.gz
ubox-msx-lib-main.zip
Use f-stringsHEADmain
-rwxr-xr-xtools/mkdeps.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mkdeps.py b/tools/mkdeps.py
index 8881cf0..28b7ff9 100755
--- a/tools/mkdeps.py
+++ b/tools/mkdeps.py
@@ -63,7 +63,7 @@ def main():
try:
out = subprocess.run(cmd + [d], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if out.returncode:
- sys.exit("Error: %s" % out.stderr)
+ sys.exit(f"Error: {out.stderr}")
except FileNotFoundError:
sys.exit(f"Error: {cmd[0]} not found in the PATH")
@@ -74,7 +74,7 @@ def main():
old = open(args.deps, "rt").read()
except Exception:
if args.verbose:
- print("%r not found, will generate" % args.deps)
+ print(f"{args.deps} not found, will generate")
old = None
new = "\n".join(result)
@@ -84,7 +84,7 @@ def main():
fd.write(new)
else:
if args.verbose:
- print("%r didn't change, skipping" % args.deps)
+ print(f"{args.deps} didn't change, skipping")
if __name__ == "__main__":