summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pubsub.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/pubsub.py b/src/pubsub.py
index 5fd0884e..54d950cd 100644
--- a/src/pubsub.py
+++ b/src/pubsub.py
@@ -25,12 +25,6 @@ import atom_parser
from sleekxmpp.xmlstream import ElementBase, ET
-try:
- import feedparser
- has_feedparser = True
-except ImportError:
- has_feedparser = False
-
class PubsubNode(object):
node_type = None # unknown yet
def __init__(self, name, parent=None):
@@ -341,11 +335,8 @@ class PubsubBrowserTab(tabs.Tab):
if not selected_item:
return
log.debug('Content: %s'%ET.tostring(selected_item.content))
- if not has_feedparser:
- self.item_viewer._text = str(ET.tostring(selected_item.content))
- else:
- entry = atom_parser.parse_atom_entry(selected_item.content)
- self.item_viewer._text = \
+ entry = atom_parser.parse_atom_entry(selected_item.content)
+ self.item_viewer._text = \
"""\x193Title:\x19o %(title)s
\x193Author:\x19o %(author_name)s (%(author_uri)s)
%(dates)s\x193Link:\x19o %(link)s