Update a couple missed changeFunctionName calls.

This commit is contained in:
James Vega 2005-05-16 03:25:43 +00:00
parent 79fc5b5994
commit 994cff5c05
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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