mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Update a couple missed changeFunctionName calls.
This commit is contained in:
parent
79fc5b5994
commit
994cff5c05
@ -159,7 +159,7 @@ def makeNewAlias(name, alias):
|
||||
self.Proxy(irc, msg, tokens)
|
||||
doc =format('<an alias, %n>\n\nAlias for %q.',
|
||||
(biggestDollar, 'argument'), alias)
|
||||
f = utils.changeFunctionName(f, name, doc)
|
||||
f = utils.python.changeFunctionName(f, name, doc)
|
||||
return f
|
||||
|
||||
class Alias(callbacks.Plugin):
|
||||
|
@ -262,7 +262,7 @@ class RSS(callbacks.Plugin):
|
||||
def f(self, irc, msg, args):
|
||||
args.insert(0, url)
|
||||
self.rss(irc, msg, args)
|
||||
f = utils.changeFunctionName(f, name, docstring)
|
||||
f = utils.python.changeFunctionName(f, name, docstring)
|
||||
f.url = url # Used by __call__.
|
||||
self.feedNames.add(name)
|
||||
setattr(self.__class__, name, f)
|
||||
|
@ -891,7 +891,7 @@ def wrap(f, specList=[], name=None, **kw):
|
||||
funcArgs = inspect.getargs(f.func_code)[0][len(self.commandArgs):]
|
||||
self.log.error('Extra args: %s', funcArgs)
|
||||
raise
|
||||
return utils.python.changeFunctionName(newf, name, f.__doc__)
|
||||
return utils.python.changeFunctionName(newf, name, f.__doc__)
|
||||
|
||||
__all__ = [
|
||||
# Contexts.
|
||||
|
Loading…
Reference in New Issue
Block a user