summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-07-10 18:17:38 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-07-10 18:17:38 +0200
commitc03557efd75cd21a2798991b2729177294167842 (patch)
tree13956c685f8de0fdb791c35beea196c0ec5734c1 /src
parentfa464e4d86185266e1de9fb89d32fa2f35964ce1 (diff)
downloadpoezio-c03557efd75cd21a2798991b2729177294167842.tar.gz
poezio-c03557efd75cd21a2798991b2729177294167842.tar.bz2
poezio-c03557efd75cd21a2798991b2729177294167842.tar.xz
poezio-c03557efd75cd21a2798991b2729177294167842.zip
Remove useless feedparser import
Diffstat (limited to 'src')
-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