mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +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)
|
raise AliasError, format('Alias %q is locked.', name)
|
||||||
try:
|
try:
|
||||||
f = makeNewAlias(name, alias)
|
f = makeNewAlias(name, alias)
|
||||||
f = types.MethodType(f, self, Alias)
|
f = types.MethodType(f, self)
|
||||||
except RecursiveAlias:
|
except RecursiveAlias:
|
||||||
raise AliasError, 'You can\'t define a recursive alias.'
|
raise AliasError, 'You can\'t define a recursive alias.'
|
||||||
aliasGroup = self.registryValue('aliases', value=False)
|
aliasGroup = self.registryValue('aliases', value=False)
|
||||||
|
@ -349,7 +349,7 @@ class RSS(callbacks.Plugin):
|
|||||||
args.insert(0, url)
|
args.insert(0, url)
|
||||||
self.rss(irc, msg, args)
|
self.rss(irc, msg, args)
|
||||||
f = utils.python.changeFunctionName(f, name, docstring)
|
f = utils.python.changeFunctionName(f, name, docstring)
|
||||||
f = types.MethodType(f, self, RSS)
|
f = types.MethodType(f, self)
|
||||||
self.feedNames[name] = (url, f)
|
self.feedNames[name] = (url, f)
|
||||||
self._registerFeed(name, url)
|
self._registerFeed(name, url)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user