We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00d1fc2 commit e2c208bCopy full SHA for e2c208b
src/python/bot/tasks/minimize_task.py
@@ -876,7 +876,7 @@ def get_temporary_file_name(original_file):
876
directory, basename = os.path.split(original_file)
877
basename = basename[-MAX_TEMPORARY_FILE_BASENAME_LENGTH:]
878
879
- random_hex = binascii.b2a_hex(os.urandom(16))
+ random_hex = binascii.b2a_hex(os.urandom(16)).decode('utf-8')
880
new_file_path = os.path.join(directory, '%s%s' % (random_hex, basename))
881
882
return new_file_path
0 commit comments