X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=fc8c915a2099355393e1457ea6f6beede779700a;hb=b80ac67f6ac8baa296df1ab7e2c622b85c0eed20;hp=bdb573af2210330f78f8279ef429cb4e77095093;hpb=b9ebd1d66eca9bcfefbbea1e008f694e3cf95b2c;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index bdb573af..fc8c915a 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -701,16 +701,6 @@ def which_alias_file(): ################################################################################ -# Escape characters which have meaning to SQL's regex comparison operator ('~') -# (woefully incomplete) - -def regex_safe (s): - s = s.replace('+', '\\\\+') - s = s.replace('.', '\\\\.') - return s - -################################################################################ - def TemplateSubst(map, filename): """ Perform a substition of template """ templatefile = open_file(filename)