mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed RSS to include a feedparser which doesn't override the globally-installed one, using universalImport.
This commit is contained in:
parent
a86b4694d7
commit
5076241bcd
2858
plugins/RSS/our_feedparser.py
Executable file
2858
plugins/RSS/our_feedparser.py
Executable file
File diff suppressed because it is too large
Load Diff
@ -42,12 +42,7 @@ import supybot.ircutils as ircutils
|
||||
import supybot.registry as registry
|
||||
import supybot.callbacks as callbacks
|
||||
|
||||
try:
|
||||
import feedparser
|
||||
except ImportError:
|
||||
raise callbacks.Error, \
|
||||
'You need to have feedparser installed to use this plugin. ' \
|
||||
'Download it at <http://feedparser.org/>'
|
||||
feedparser = utils.python.universalImport('feedparser', 'our_feedparser')
|
||||
|
||||
def getFeedName(irc, msg, args, state):
|
||||
if not registry.isValidRegistryName(args[0]):
|
||||
|
Loading…
Reference in New Issue
Block a user