Oops, I'm retarded. f.func_name needed to be just name.

This commit is contained in:
Jeremy Fincher 2003-12-16 03:10:02 +00:00
parent 35ecd7bd98
commit dfe9008248
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class RSS(callbacks.Privmsg):
args.insert(0, url)
self.rss(irc, msg, args)
f = types.FunctionType(f.func_code, f.func_globals,
f.func_name, closure=f.func_closure)
name, closure=f.func_closure)
f.__doc__ = docstring
self.feedNames.add(name)
setattr(self.__class__, name, f)