aboutsummaryrefslogtreecommitdiff
path: root/source/feedgetter.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-04-22 10:50:37 +0200
committercedricbonhomme <devnull@localhost>2012-04-22 10:50:37 +0200
commitb4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0 (patch)
treed13d1f0a463030b3ca2ad88753719090a6d9de21 /source/feedgetter.py
parentAdded comments. (diff)
downloadnewspipe-b4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0.tar.gz
newspipe-b4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0.tar.bz2
newspipe-b4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0.zip
Minor refactoring with pylint.
Diffstat (limited to 'source/feedgetter.py')
-rwxr-xr-xsource/feedgetter.py7
1 files changed, 1 insertions, 6 deletions
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))
bgstack15