File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def format_report(self) -> str:
5555
5656
5757def load_source (path : Union [Path , str ]) -> str :
58- with open (path , mode = 'r ' , encoding = 'utf8' ) as source_file :
58+ with open (path , mode = 'rb ' , encoding = 'utf8' ) as source_file :
5959 file_content = source_file .read ()
6060
6161 return file_content
@@ -193,7 +193,7 @@ def run_compiler(
193193
194194 # Create a copy that we can use directly with the CLI interface
195195 modified_source_path = tmp_dir / source_file_name .name
196- with open (modified_source_path , 'w ' , encoding = 'utf8' ) as modified_source_file :
196+ with open (modified_source_path , 'wb ' , encoding = 'utf8' ) as modified_source_file :
197197 modified_source_file .write (compiler_input )
198198
199199 process = subprocess .run (
You can’t perform that action at this time.
0 commit comments