From f172f9c5e609f2a636a7101c95ac340f84d3e539 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Fri, 30 Oct 2009 13:50:46 +0000 Subject: [PATCH] Don't shadow 'map' builtin in daklib.utils.TemplateSubst Signed-off-by: Chris Lamb --- daklib/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5