X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_deferred.py;h=e9266bcc03f4aa33a60483b9dc24779e5b146323;hb=0d80b258098ff470433efa4d9c1f81b404883195;hp=833cad282992fe94b1f400294627f8de9dba4b32;hpb=16f731a893f0ba036a995c25b8b5f3490394070e;p=dak.git diff --git a/dak/show_deferred.py b/dak/show_deferred.py index 833cad28..e9266bcc 100755 --- a/dak/show_deferred.py +++ b/dak/show_deferred.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# based on queue-report +""" Overview of the DEFERRED queue, based on queue-report """ # Copyright (C) 2001, 2002, 2003, 2005, 2006 James Troup # Copyright (C) 2008 Thomas Viehmann @@ -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)