#NEWLINE# def add_history_value( character , attribute ) : #NEWLINE# #INDENT# '\n    Add given value into history data of the character\n\n    :param character: Character to modify\n    :type character: Character\n    :param attribute: name of the attribute to store\n    :type attribute: String\n\n    .. versionadded:: 0.10\n    ' #NEWLINE# if ( not hasattr ( character , 'old_values' ) ) : #NEWLINE# #INDENT# character . old_values = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if hasattr ( getattr ( character , attribute ) , 'copy' ) : #NEWLINE# #INDENT# character . old_values [ attribute ] = getattr ( character , attribute ) . copy ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# character . old_values [ attribute ] = getattr ( character , attribute )