#NEWLINE# def apply_count( self , s , count ) : #NEWLINE# #INDENT# if ( not self . countcheck ) : #NEWLINE# #INDENT# return s #NEWLINE# #UNINDENT# s = list ( s ) #NEWLINE# if self . countpreedit : #NEWLINE# #INDENT# count = ( self . countpreedit + count ) #NEWLINE# #UNINDENT# if self . countsufedit : #NEWLINE# #INDENT# count += self . countsufedit #NEWLINE# #UNINDENT# s . insert ( self . countpos , count ) #NEWLINE# return '' . join ( s )