add explicit UTF-8 encoding

This commit is contained in:
svlandeg
2025-11-03 21:27:12 +01:00
parent a83646e098
commit c72b8b2309
8 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ def download_file_with_lock(url, filename, postprocess_fn=None):
if os.path.exists(file_path):
return file_path
with open(lock_path, 'w') as lock_file:
with open(lock_path, 'w', encoding='utf-8') as lock_file:
# Only a single rank can acquire this lock
# All other ranks block until it is released