diff makeitso/template.py @ 69:a75138a952d0

using **kw doesnt update the actual dict; fix this
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 Jan 2011 11:12:20 -0800
parents a0f7bfa98755
children cb00c011ff45
line wrap: on
line diff
--- 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):