From: Chris Lamb Date: Fri, 30 Oct 2009 13:50:46 +0000 (+0000) Subject: Don't shadow 'map' builtin in daklib.utils.TemplateSubst X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f172f9c5e609f2a636a7101c95ac340f84d3e539;p=dak Don't shadow 'map' builtin in daklib.utils.TemplateSubst Signed-off-by: Chris Lamb --- diff --git a/daklib/utils.py b/daklib/utils.py index 50a0682d..70500ad7 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -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