File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -913,7 +913,7 @@ def parse_pins():
913
913
config_file = open (config_filename , "r" )
914
914
except IOError :
915
915
print ("Please set your configuration in '%s' file" % config_filename )
916
- config_file = open (config_filename , "w" )
916
+ config_file = open (config_filename , "w" , newline = ' \n ' )
917
917
if sys .platform .startswith ("win32" ):
918
918
print ("Platform is Windows" )
919
919
cubemxdir = (
@@ -1024,10 +1024,10 @@ def parse_pins():
1024
1024
# open output file
1025
1025
if os .path .isfile (output_c_filename ):
1026
1026
os .remove (output_c_filename )
1027
- out_c_file = open (output_c_filename , "w" )
1027
+ out_c_file = open (output_c_filename , "w" , newline = ' \n ' )
1028
1028
if os .path .isfile (output_h_filename ):
1029
1029
os .remove (output_h_filename )
1030
- out_h_file = open (output_h_filename , "w" )
1030
+ out_h_file = open (output_h_filename , "w" , newline = ' \n ' )
1031
1031
1032
1032
# open input file
1033
1033
xml_mcu = parse (input_file_name )
You can’t perform that action at this time.
0 commit comments