Mercurial > hg > Feedworm
diff backend/AbstractFeedUpdater.py @ 233:e34c53a3e407
fixes from eric's style check
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 25 Sep 2014 17:26:34 +0200 |
parents | 699d8f1cebd4 |
children | 03e3ebb1d52f |
line wrap: on
line diff
--- a/backend/AbstractFeedUpdater.py Thu Sep 25 17:10:40 2014 +0200 +++ b/backend/AbstractFeedUpdater.py Thu Sep 25 17:26:34 2014 +0200 @@ -27,7 +27,7 @@ def _retrieveFeed(self): if self.preferences.isProxyConfigured(): proxyUrl = "http://%s:%i" % (self.preferences.proxyHost(), self.preferences.proxyPort()) - proxyHandler = ProxyHandler({"http" : proxyUrl}) + proxyHandler = ProxyHandler({"http": proxyUrl}) result = feedparser.parse(self.feed.rss_url, handlers=[proxyHandler]) else: # when updating to python3 see http://code.google.com/p/feedparser/issues/detail?id=260 @@ -88,7 +88,7 @@ def _setFeedTitle(self, feedDict): if self.feed.title is None: - if feedDict.feed.has_key("title"): + if 'title' in feedDict.feed: self.feed.title = feedDict.feed.title else: self.feed.title = self.feed.rss_url