@@ -191,16 +191,16 @@ def _write_hashed_file(package_name, src, target_path, out_file_dir, hash_prefix
191
191
# that it's actually the same file.
192
192
if not _identical_files (src .name , output_file_path ):
193
193
print (
194
- error_color ("Hash collision processing:" ),
194
+ _error_color ("Hash collision processing:" ),
195
195
package_name ,
196
196
file = sys .stderr ,
197
197
)
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 )
201
201
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 ) )
204
204
sys .exit (1 )
205
205
else :
206
206
# Create new file.
@@ -315,7 +315,7 @@ def build(output_path, hash_prefix_len, mpy_cross_path):
315
315
316
316
mpy_version , _mpy_sub_version = mpy_cross .mpy_version (mpy_cross = mpy_cross_path )
317
317
mpy_version = str (mpy_version )
318
- print (f "Generating bytecode version { mpy_version } " )
318
+ print ("Generating bytecode version" , mpy_version )
319
319
320
320
for lib_dir in lib_dirs :
321
321
for manifest_path in glob .glob (os .path .join (lib_dir , "**" , "manifest.py" ), recursive = True ):
0 commit comments