From b4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Sun, 22 Apr 2012 10:50:37 +0200 Subject: Minor refactoring with pylint. --- source/feedgetter.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source/feedgetter.py') diff --git a/source/feedgetter.py b/source/feedgetter.py index 14ef2edf..f713f672 100755 --- a/source/feedgetter.py +++ b/source/feedgetter.py @@ -26,11 +26,8 @@ __revision__ = "$Date: 2012/04/22 $" __copyright__ = "Copyright (c) Cedric Bonhomme" __license__ = "GPLv3" -import os.path -import traceback import threading import feedparser -import hashlib from BeautifulSoup import BeautifulSoup from datetime import datetime @@ -38,10 +35,8 @@ from datetime import datetime import utils import mongodb -feeds_list = [] list_of_threads = [] - class FeedGetter(object): """ This class is in charge of retrieving feeds listed in ./var/feed.lst. @@ -123,7 +118,7 @@ class FeedGetter(object): try: # article description description = article.description - except Exception, e: + except Exception: description = "" description = str(BeautifulSoup(description)) article_title = str(BeautifulSoup(article.title)) -- cgit