#NEWLINE# def write_tip( self , tip , signature ) : #NEWLINE# #INDENT# if signature : #NEWLINE# #INDENT# signature = str ( signature [ 0 ] ) #NEWLINE# #UNINDENT# tip_path = self . tip_path ( tip ) #NEWLINE# open ( tip_path , 'a' ) . close ( ) #NEWLINE# fh = open ( fh , 'r+' ) #NEWLINE# fh . seek ( 0 ) #NEWLINE# fh . write ( signature ) #NEWLINE# fh . truncate ( ) #NEWLINE# fh . close ( )