File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ def get_file(
174174 )
175175
176176 # Load the temporary file and write it to our file or IO object
177- with open (temp_filename , encoding = "utf-8 " ) as temp_f :
177+ with open (temp_filename , "rb " ) as temp_f :
178178 with get_file_io (filename_or_io , "wb" ) as file_io :
179179 data = temp_f .read ()
180180 data_bytes : bytes
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ def get_file(
184184 raise IOError (output .stderr )
185185
186186 # Load our file or IO object and write it to the temporary file
187- with open (temp_filename , encoding = "utf-8 " ) as temp_f :
187+ with open (temp_filename , "rb " ) as temp_f :
188188 with get_file_io (filename_or_io , "wb" ) as file_io :
189189 data_bytes : bytes
190190
You can’t perform that action at this time.
0 commit comments