treebuilder fixup: fix argument order in replace()

This commit is contained in:
Will Woods 2011-05-10 19:53:09 -04:00
parent f4107c632d
commit fab2a091bc

View File

@ -215,7 +215,7 @@ class TemplateRunner(object):
def replace(self, pat, repl, *fileglobs): def replace(self, pat, repl, *fileglobs):
for g in fileglobs: for g in fileglobs:
for f in _glob(g, root=self.outroot): for f in _glob(g, root=self.outroot):
replace(pat, repl, f) replace(f, pat, repl)
def append(self, filename, data): def append(self, filename, data):
with open(self._out(filename), "a") as fobj: with open(self._out(filename), "a") as fobj: