From 5bfb9fcc5aa4304b058f941c370e56f6dc0fa3e4 Mon Sep 17 00:00:00 2001 From: Filippo Giunchedi Date: Tue, 19 Jan 2010 02:36:05 +0100 Subject: [PATCH] tools/queue_rss.py: bump version and wrap to 79 columns Signed-off-by: Filippo Giunchedi --- tools/queue_rss.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/queue_rss.py b/tools/queue_rss.py index 9fc5f429..9fcc1d8d 100755 --- a/tools/queue_rss.py +++ b/tools/queue_rss.py @@ -3,7 +3,7 @@ # License: GPL v2 or later # Author: Filippo Giunchedi -# Version: 0.4 +# Version: 0.5 import cgi import os @@ -23,7 +23,8 @@ outrss_filename = "NEW_out.rss" db_filename = "status.db" parser = OptionParser() -parser.set_defaults(queuedir="queue", outdir="out", datadir="status", max_entries="30") +parser.set_defaults(queuedir="queue", outdir="out", datadir="status", + max_entries="30") parser.add_option("-q", "--queuedir", dest="queuedir", help="The queue dir (%default)") @@ -111,7 +112,8 @@ def add_rss_item(status, msg, direction): return False description = "
Description: %s\nChanges: %s\n
" % \ - (utf2ascii(cgi.escape(msg['Description'])), utf2ascii(cgi.escape(msg['Changes']))) + (utf2ascii(cgi.escape(msg['Description'])), + utf2ascii(cgi.escape(msg['Changes']))) link = "http://ftp-master.debian.org/new/%s_%s.html" % \ (msg['Source'], msg['Version']) -- 2.39.5