@@ -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