mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Alias & RSS: remove third argument to types.MethodType.
It is useless in the case in point, and is not compatible with Python 3.
This commit is contained in:
parent
089be4c8a5
commit
242a54fbf2
@ -264,7 +264,7 @@ class Alias(callbacks.Plugin):
|
||||
raise AliasError, format('Alias %q is locked.', name)
|
||||
try:
|
||||
f = makeNewAlias(name, alias)
|
||||
f = types.MethodType(f, self, Alias)
|
||||
f = types.MethodType(f, self)
|
||||
except RecursiveAlias:
|
||||
raise AliasError, 'You can\'t define a recursive alias.'
|
||||
aliasGroup = self.registryValue('aliases', value=False)
|
||||
|
@ -349,7 +349,7 @@ class RSS(callbacks.Plugin):
|
||||
args.insert(0, url)
|
||||
self.rss(irc, msg, args)
|
||||
f = utils.python.changeFunctionName(f, name, docstring)
|
||||
f = types.MethodType(f, self, RSS)
|
||||
f = types.MethodType(f, self)
|
||||
self.feedNames[name] = (url, f)
|
||||
self._registerFeed(name, url)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user