Skip to content

Commit bfbe523

Browse files
author
rocky
committed
flynt more files
1 parent 4c1ed81 commit bfbe523

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

test/test_pyenvlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def file_matches(files, root, basenames, patterns):
200200
print("Processed %d files, total" % (i + 1))
201201
print(time.ctime())
202202
elapsed_time = time.time() - start_time
203-
print("%g seconds" % elapsed_time)
203+
print(f"{elapsed_time:g} seconds")
204204
os.chdir(cwd)
205205

206206

@@ -273,4 +273,4 @@ def file_matches(files, root, basenames, patterns):
273273
do_compile=do_compile,
274274
)
275275
else:
276-
print("### Path %s doesn't exist; skipping" % src_dir)
276+
print(f"### Path {src_dir} doesn't exist; skipping")

test/test_pythonlib.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ def get_srcdir():
109109
"3.12",
110110
"3.13",
111111
):
112-
bytecode = "bytecode_%s" % vers
113-
key = "bytecode-%s" % vers
112+
bytecode = f"bytecode_{vers}"
113+
key = f"bytecode-{vers}"
114114
test_options[key] = (os.path.join(src_dir, bytecode), PYC, bytecode, vers)
115-
key = "%s" % vers
116-
pythonlib = "python%s" % vers
115+
key = f"{vers}"
116+
pythonlib = f"python{vers}"
117117
if isinstance(vers, float) and vers >= 3.0:
118118
pythonlib = os.path.join(src_dir, pythonlib, "__pycache__")
119119
test_options[key] = (os.path.join(lib_prefix, pythonlib), PYOC, pythonlib, vers)
@@ -129,10 +129,10 @@ def get_srcdir():
129129
(312, 3.12),
130130
(313, 3.13),
131131
):
132-
bytecode = "bytecode_pypy%s" % vers
133-
key = "bytecode-pypy%s" % vers
132+
bytecode = f"bytecode_pypy{vers}"
133+
key = f"bytecode-pypy{vers}"
134134
test_options[key] = (os.path.join(src_dir, bytecode), PYOC, bytecode, vers_dot)
135-
key = "bytecode-pypy%s" % vers_dot
135+
key = f"bytecode-pypy{vers_dot}"
136136
test_options[key] = (os.path.join(src_dir, bytecode), PYOC, bytecode, vers_dot)
137137

138138

@@ -287,7 +287,7 @@ def file_matches(files, root, basenames, patterns):
287287
if os.path.isdir(src_dir):
288288
checked_dirs.append([src_dir, pattern, target_dir])
289289
else:
290-
sys.stderr.write("Can't find directory %s. Skipping\n" % src_dir)
290+
sys.stderr.write(f"Can't find directory {src_dir}. Skipping\n")
291291
continue
292292
last_compile_version = compiled_version
293293
pass

0 commit comments

Comments
 (0)