mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +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.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]):
|
||||||
|
Loading…
Reference in New Issue
Block a user