Fixed RSS to include a feedparser which doesn't override the globally-installed one, using universalImport.

This commit is contained in:
Jeremy Fincher 2009-03-09 15:30:05 -05:00 committed by James Vega
parent a86b4694d7
commit 5076241bcd
2 changed files with 2859 additions and 6 deletions

2858
plugins/RSS/our_feedparser.py Executable file

File diff suppressed because it is too large Load Diff

View File

@ -42,12 +42,7 @@ import supybot.ircutils as ircutils
import supybot.registry as registry import supybot.registry as registry
import supybot.callbacks as callbacks import supybot.callbacks as callbacks
try: feedparser = utils.python.universalImport('feedparser', 'our_feedparser')
import feedparser
except ImportError:
raise callbacks.Error, \
'You need to have feedparser installed to use this plugin. ' \
'Download it at <http://feedparser.org/>'
def getFeedName(irc, msg, args, state): def getFeedName(irc, msg, args, state):
if not registry.isValidRegistryName(args[0]): if not registry.isValidRegistryName(args[0]):