@@ -240,7 +240,7 @@ def writeHeader(checkStream):
240240 })
241241
242242 raw_file = this_dir .parent / ".github" / "workflows" / f"__{ checkName } .yml.raw"
243- with open (raw_file , 'w' ) as output_stream :
243+ with open (raw_file , 'w' , newline = ' \n ' ) as output_stream :
244244 writeHeader (output_stream )
245245 yaml .dump ({
246246 'name' : f"PR Check - { checkSpecification ['name' ]} " ,
@@ -274,7 +274,7 @@ def writeHeader(checkStream):
274274 }, output_stream )
275275
276276 with open (raw_file , 'r' ) as input_stream :
277- with open (this_dir .parent / ".github" / "workflows" / f"__{ checkName } .yml" , 'w' ) as output_stream :
277+ with open (this_dir .parent / ".github" / "workflows" / f"__{ checkName } .yml" , 'w' , newline = ' \n ' ) as output_stream :
278278 content = input_stream .read ()
279279 output_stream .write ("\n " .join (list (map (lambda x :x .rstrip (), content .splitlines ()))+ ['' ]))
280280 os .remove (raw_file )
@@ -328,7 +328,7 @@ def writeHeader(checkStream):
328328 }, output_stream )
329329
330330 with open (raw_file , 'r' ) as input_stream :
331- with open (this_dir .parent / ".github" / "workflows" / f"__{ collection_name } .yml" , 'w' ) as output_stream :
331+ with open (this_dir .parent / ".github" / "workflows" / f"__{ collection_name } .yml" , 'w' , newline = ' \n ' ) as output_stream :
332332 content = input_stream .read ()
333333 output_stream .write ("\n " .join (list (map (lambda x :x .rstrip (), content .splitlines ()))+ ['' ]))
334334 os .remove (raw_file )
0 commit comments