fixed type error

master
BodgeMaster 2020-04-08 03:22:34 +02:00
parent fcccd0c408
commit c22d2bea65
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ for variable in config_values:
if replacement[i] == '?' and (i==0 or not replacement[i-1]=='\\'): if replacement[i] == '?' and (i==0 or not replacement[i-1]=='\\'):
argument_positions = argument_positions + [ i ] argument_positions = argument_positions + [ i ]
i = i+1 i = i+1
print "DEBUG: " + argument_positions print "DEBUG: " + repr(argument_positions)
replacement = replacement.replace("\\?", "?") replacement = replacement.replace("\\?", "?")
file_out = open(sys.argv[1], "w") file_out = open(sys.argv[1], "w")
file_out.write(file_content.decode('utf-8').replace("%" + variable.upper() + "%", replacement).encode('utf-8')) file_out.write(file_content.decode('utf-8').replace("%" + variable.upper() + "%", replacement).encode('utf-8'))