X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=70500ad7aa814de5d6d6656f4b2a20fe04daf278;hb=f172f9c5e609f2a636a7101c95ac340f84d3e539;hp=50a0682dbedcfac93cb555757a8e20275e7b7ef4;hpb=3a541681a420745b36e6b6d025ef6b649c03e7c8;p=dak.git 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