From 65d881eee50079e16c9801f8662d3847a7bcd7a1 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 11 Oct 2012 19:52:52 +0200 Subject: [PATCH] Code cleanup. --- dosagelib/events.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dosagelib/events.py b/dosagelib/events.py index c6848f07f..d0acc3f8c 100644 --- a/dosagelib/events.py +++ b/dosagelib/events.py @@ -1,10 +1,9 @@ # -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs -import os.path +import os import time -import rss import urllib -import util +from . import rss, util, configuration class EventHandler(object): """Base class for writing events to files. The currently defined events are @@ -50,7 +49,8 @@ class RSSEventHandler(EventHandler): """Output in RSS format.""" def RFC822Date(self, indate): - """Format date in rfc822 format. XXX move to util module.""" + """Format date in rfc822 format.""" + # XXX move to util module return time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(indate)) def getFilename(self): @@ -64,8 +64,7 @@ class RSSEventHandler(EventHandler): today = time.localtime(today) yesterday = time.localtime(yesterday) - # XXX replace with conf var - link = 'https://github.com/wummel/dosage' + link = configuration.Url self.rssfn = self.getFilename()