#NEWLINE# def from_text( cls , rdclass , rdtype , tok , origin = None , relativize = True ) : #NEWLINE# #INDENT# algorithm = tok . get_uint8 ( ) #NEWLINE# flags = tok . get_uint8 ( ) #NEWLINE# iterations = tok . get_uint16 ( ) #NEWLINE# salt = tok . get_string ( ) #NEWLINE# if ( salt == '-' ) : #NEWLINE# #INDENT# salt = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# salt = salt . decode ( 'hex-codec' ) #NEWLINE# #UNINDENT# return cls ( rdclass , rdtype , algorithm , flags , iterations , salt )