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:
Valentin Lorentz 2012-08-05 14:08:04 +02:00
parent 089be4c8a5
commit 242a54fbf2
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)