fixed infinite loop

master
BodgeMaster 2020-04-08 03:13:41 +02:00
parent 9d3e3945b2
commit fcccd0c408
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ for variable in config_values:
while i<len(replacement): while i<len(replacement):
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
print "DEBUG: " + argument_positions print "DEBUG: " + argument_positions
replacement = replacement.replace("\\?", "?") replacement = replacement.replace("\\?", "?")
file_out = open(sys.argv[1], "w") file_out = open(sys.argv[1], "w")