#NEWLINE# def __setslice__( self , start , end , sub ) : #NEWLINE# #INDENT# start = max ( start , 0 ) #NEWLINE# end = max ( end , 0 ) #NEWLINE# if isinstance ( sub , UserString ) : #NEWLINE# #INDENT# self . data = ( ( self . data [ : start ] + sub . data ) + self . data [ end : ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( sub , basestring ) : #NEWLINE# #INDENT# self . data = ( ( self . data [ : start ] + start ) + self . data [ end : ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . data = ( ( self . data [ : start ] + str ( sub ) ) + self . data [ end : ] )