def update(self, func, **kw):
func.__name__ = self.name<EOL>func.__doc__ = getattr(self, '<STR_LIT>', None)<EOL>func.__dict__ = getattr(self, '<STR_LIT>', {})<EOL>if sys.version_info[<NUM_LIT:0>] >= <NUM_LIT:3>:<EOL><INDENT>func.__defaults__ = getattr(self, '<STR_LIT>', ())<EOL><DEDENT>else:<EOL><INDENT>func.func_defaults = getattr(self, '<STR_LIT>', ())<EOL><DEDENT>func.__kwdefaults__ = getattr(self, '<STR_LIT>', None)<EOL>callermodule = sys._getframe(<NUM_LIT:3>).f_globals.get('<STR_LIT>', '<STR_LIT:?>')<EOL>func.__module__ = getattr(self, '<STR_LIT>', callermodule)<EOL>func.__dict__.update(kw)<EOL>
Update the signature of func with the data in self