#NEWLINE# def encode( self , encoding = None , errors = None ) : #NEWLINE# #INDENT# if errors : #NEWLINE# #INDENT# if errors : #NEWLINE# #INDENT# return self . __class__ ( self . data . encode ( encoding , errors ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . __class__ ( self . data . encode ( encoding ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return self . __class__ ( self . data . encode ( ) )