#NEWLINE# def history( self ) : #NEWLINE# #INDENT# history = self . settings . get ( 'history' , [ ] ) #NEWLINE# if isinstance ( history , dict ) : #NEWLINE# #INDENT# history = [ ] #NEWLINE# #UNINDENT# return history