mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fix previous commit on some Python versions.
This commit is contained in:
parent
d39647142c
commit
2cfe0f679f
@ -386,8 +386,12 @@ class RSS(callbacks.Plugin):
|
||||
blacklist = self.registryValue('keywordBlacklist', channel)
|
||||
|
||||
# fix shadowing by “from supybot.commands import *”
|
||||
all = __builtins__.all
|
||||
any = __builtins__.any
|
||||
try:
|
||||
all = __builtins__.all
|
||||
any = __builtins__.any
|
||||
except AttributeError:
|
||||
all = __builtins__['all']
|
||||
any = __builtins__['any']
|
||||
|
||||
if whitelist:
|
||||
if all(kw not in entry.title and kw not in entry.description
|
||||
|
Loading…
Reference in New Issue
Block a user