# HG changeset patch # User Jeff Hammel # Date 1294427540 28800 # Node ID a75138a952d0b7fc7b942ebb4708bbbcf5e5242a # Parent cce0da329f59f6ebcadd0afbb0cce2ba3225db18 using **kw doesnt update the actual dict; fix this diff -r cce0da329f59 -r a75138a952d0 makeitso/template.py --- a/makeitso/template.py Fri Jan 07 11:02:29 2011 -0800 +++ b/makeitso/template.py Fri Jan 07 11:12:20 2011 -0800 @@ -127,14 +127,14 @@ return missing - def pre(self, **variables): + def pre(self, variables): """do stuff before interpolation""" def substitute(self, **variables): """do the substitution""" vars = self.get_variables(**variables) - self.pre(**vars) + self.pre(vars) self.check_missing(vars) # do the substitution @@ -144,9 +144,9 @@ variables=vars) template.substitute() - self.post(**variables) + self.post(vars) - def post(self, **variables): + def post(self, variables): """do stuff after interpolation""" def read_variables(self, variables):