]> err.no Git - dak/commitdiff
Don't shadow 'map' builtin in daklib.utils.TemplateSubst
authorChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 13:50:46 +0000 (13:50 +0000)
committerChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 14:29:58 +0000 (14:29 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/utils.py

index 50a0682dbedcfac93cb555757a8e20275e7b7ef4..70500ad7aa814de5d6d6656f4b2a20fe04daf278 100755 (executable)
@@ -755,12 +755,12 @@ def which_alias_file():
 
 ################################################################################
 
-def TemplateSubst(map, filename):
+def TemplateSubst(subst_map, filename):
     """ Perform a substition of template """
     templatefile = open_file(filename)
     template = templatefile.read()
-    for x in map.keys():
-        template = template.replace(x, str(map[x]))
+    for x in subst_map.keys():
+        template = template.replace(x, str(subst_map[x]))
     templatefile.close()
     return template