small bug fix for last commit
This commit is contained in:
parent
13ba71a314
commit
bdd2d55383
|
@ -62,8 +62,9 @@ for name in filenames:
|
||||||
positions.append(position) # ...and position
|
positions.append(position) # ...and position
|
||||||
|
|
||||||
interpolator = []
|
interpolator = []
|
||||||
for position,operand in enumerate(set(re.findall(r'#(([s]#)?(.+?))#',options.condition))): # find three groups
|
condition = options.condition # copy per file, might be altered
|
||||||
condition = options.condition.replace('#'+operand[0]+'#',
|
for position,operand in enumerate(set(re.findall(r'#(([s]#)?(.+?))#',condition))): # find three groups
|
||||||
|
condition = condition.replace('#'+operand[0]+'#',
|
||||||
{ '': '{%i}'%position,
|
{ '': '{%i}'%position,
|
||||||
's#':'"{%i}"'%position}[operand[1]])
|
's#':'"{%i}"'%position}[operand[1]])
|
||||||
if operand[2] in specials: # special label ?
|
if operand[2] in specials: # special label ?
|
||||||
|
|
Loading…
Reference in New Issue