Commit 76e3f082 authored by Jonathan Jenkins's avatar Jonathan Jenkins

ignore unrelated parameters passed into filter_configs

parent e908dd07
...@@ -48,11 +48,6 @@ def main(): ...@@ -48,11 +48,6 @@ def main():
v = tp[i+1] v = tp[i+1]
tdict[tp[i]] = v tdict[tp[i]] = v
# quick check - make sure pairs are actually in the config
for k in tdict:
if k not in cfg.replace_map:
raise ValueError("key " + k + " not in original config")
# hack - if we are using an output prefix, append the "dot" here # hack - if we are using an output prefix, append the "dot" here
if args.output_prefix == None: if args.output_prefix == None:
args.output_prefix = "" args.output_prefix = ""
...@@ -62,7 +57,7 @@ def main(): ...@@ -62,7 +57,7 @@ def main():
# (cfg iterator returns nothing, eval'd for side effects) # (cfg iterator returns nothing, eval'd for side effects)
for i,_ in enumerate(cfg): for i,_ in enumerate(cfg):
for k in tdict: for k in tdict:
if tdict[k] != cfg.replace_map[k]: if k not in cfg.replace_map or tdict[k] != cfg.replace_map[k]:
break break
else: else:
stdout.write(args.output_prefix + str(i) + "\n") stdout.write(args.output_prefix + str(i) + "\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment