X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_deferred.py;h=8c13d677befdf1d6d4f56db80ed9cbdcb4f7c819;hb=4b277e613887f5103cd2ab64262fe29ad1bf7540;hp=833cad282992fe94b1f400294627f8de9dba4b32;hpb=16f731a893f0ba036a995c25b8b5f3490394070e;p=dak.git diff --git a/dak/show_deferred.py b/dak/show_deferred.py index 833cad28..8c13d677 100755 --- a/dak/show_deferred.py +++ b/dak/show_deferred.py @@ -27,6 +27,7 @@ from debian_bundle import deb822 from daklib import database from daklib import queue from daklib import utils +from daklib.regexes import re_html_escaping, html_escaping ################################################################################ ### work around bug #487902 in debian-python 0.1.10 @@ -40,8 +41,6 @@ deb822.Changes._multivalued_fields = { row_number = 1 -html_escaping = {'"':'"', '&':'&', '<':'<', '>':'>'} -re_html_escaping = re.compile('|'.join(map(re.escape, html_escaping.keys()))) def html_escape(s): return re_html_escaping.sub(lambda x: html_escaping.get(x.group(0)), s)