mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +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)
|
self.Proxy(irc, msg, tokens)
|
||||||
doc =format('<an alias, %n>\n\nAlias for %q.',
|
doc =format('<an alias, %n>\n\nAlias for %q.',
|
||||||
(biggestDollar, 'argument'), alias)
|
(biggestDollar, 'argument'), alias)
|
||||||
f = utils.changeFunctionName(f, name, doc)
|
f = utils.python.changeFunctionName(f, name, doc)
|
||||||
return f
|
return f
|
||||||
|
|
||||||
class Alias(callbacks.Plugin):
|
class Alias(callbacks.Plugin):
|
||||||
|
@ -262,7 +262,7 @@ class RSS(callbacks.Plugin):
|
|||||||
def f(self, irc, msg, args):
|
def f(self, irc, msg, args):
|
||||||
args.insert(0, url)
|
args.insert(0, url)
|
||||||
self.rss(irc, msg, args)
|
self.rss(irc, msg, args)
|
||||||
f = utils.changeFunctionName(f, name, docstring)
|
f = utils.python.changeFunctionName(f, name, docstring)
|
||||||
f.url = url # Used by __call__.
|
f.url = url # Used by __call__.
|
||||||
self.feedNames.add(name)
|
self.feedNames.add(name)
|
||||||
setattr(self.__class__, name, f)
|
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):]
|
funcArgs = inspect.getargs(f.func_code)[0][len(self.commandArgs):]
|
||||||
self.log.error('Extra args: %s', funcArgs)
|
self.log.error('Extra args: %s', funcArgs)
|
||||||
raise
|
raise
|
||||||
return utils.python.changeFunctionName(newf, name, f.__doc__)
|
return utils.python.changeFunctionName(newf, name, f.__doc__)
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
# Contexts.
|
# Contexts.
|
||||||
|
Loading…
Reference in New Issue
Block a user