From fab2a091bcdb9a7b96657d3031b5e8cf5184bade Mon Sep 17 00:00:00 2001 From: Will Woods Date: Tue, 10 May 2011 19:53:09 -0400 Subject: [PATCH] treebuilder fixup: fix argument order in replace() --- src/pylorax/treebuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 01ea2446..5635b05a 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -215,7 +215,7 @@ class TemplateRunner(object): def replace(self, pat, repl, *fileglobs): for g in fileglobs: for f in _glob(g, root=self.outroot): - replace(pat, repl, f) + replace(f, pat, repl) def append(self, filename, data): with open(self._out(filename), "a") as fobj: