@@ -191,16 +191,16 @@ def _write_hashed_file(package_name, src, target_path, out_file_dir, hash_prefix
191191 # that it's actually the same file.
192192 if not _identical_files (src .name , output_file_path ):
193193 print (
194- error_color ("Hash collision processing:" ),
194+ _error_color ("Hash collision processing:" ),
195195 package_name ,
196196 file = sys .stderr ,
197197 )
198- print (f " File: { target_path } " , file = sys .stderr )
199- print (f " Short hash: { short_file_hash } " , file = sys .stderr )
200- print (f " Full hash: { file_hash } " , file = sys .stderr )
198+ print (" File: " , target_path , file = sys .stderr )
199+ print (" Short hash: " , short_file_hash , file = sys .stderr )
200+ print (" Full hash: " , file_hash , file = sys .stderr )
201201 with open (output_file_path , "rb" ) as f :
202- print (f " Target hash: { file_hash (f )} " , file = sys .stderr )
203- print (f "Try increasing --hash-prefix (currently { hash_prefix_len } )" )
202+ print (" Target hash: " , _get_file_hash (f ), file = sys .stderr )
203+ print ("Try increasing --hash-prefix (currently {})" . format ( hash_prefix_len ) )
204204 sys .exit (1 )
205205 else :
206206 # Create new file.
@@ -315,7 +315,7 @@ def build(output_path, hash_prefix_len, mpy_cross_path):
315315
316316 mpy_version , _mpy_sub_version = mpy_cross .mpy_version (mpy_cross = mpy_cross_path )
317317 mpy_version = str (mpy_version )
318- print (f "Generating bytecode version { mpy_version } " )
318+ print ("Generating bytecode version" , mpy_version )
319319
320320 for lib_dir in lib_dirs :
321321 for manifest_path in glob .glob (os .path .join (lib_dir , "**" , "manifest.py" ), recursive = True ):
0 commit comments