[dak/master 15/23] Don't shadow 'map' builtin in daklib.utils.TemplateSubst
Signed-off-by: Chris Lamb <lamby@debian.org>
---
daklib/utils.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/daklib/utils.py b/daklib/utils.py
index 50a0682..70500ad 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
--
1.6.3.3
Reply to: