Remove useless feedparser import
This commit is contained in:
parent
fa464e4d86
commit
c03557efd7
1 changed files with 2 additions and 11 deletions
|
@ -25,12 +25,6 @@ import atom_parser
|
||||||
|
|
||||||
from sleekxmpp.xmlstream import ElementBase, ET
|
from sleekxmpp.xmlstream import ElementBase, ET
|
||||||
|
|
||||||
try:
|
|
||||||
import feedparser
|
|
||||||
has_feedparser = True
|
|
||||||
except ImportError:
|
|
||||||
has_feedparser = False
|
|
||||||
|
|
||||||
class PubsubNode(object):
|
class PubsubNode(object):
|
||||||
node_type = None # unknown yet
|
node_type = None # unknown yet
|
||||||
def __init__(self, name, parent=None):
|
def __init__(self, name, parent=None):
|
||||||
|
@ -341,9 +335,6 @@ class PubsubBrowserTab(tabs.Tab):
|
||||||
if not selected_item:
|
if not selected_item:
|
||||||
return
|
return
|
||||||
log.debug('Content: %s'%ET.tostring(selected_item.content))
|
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)
|
entry = atom_parser.parse_atom_entry(selected_item.content)
|
||||||
self.item_viewer._text = \
|
self.item_viewer._text = \
|
||||||
"""\x193Title:\x19o %(title)s
|
"""\x193Title:\x19o %(title)s
|
||||||
|
|
Loading…
Reference in a new issue