#NEWLINE# def get_explanation( self , spec ) : #NEWLINE# #INDENT# 'Expand an explanation.' #NEWLINE# if spec : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# a = self . dns_txt ( spec ) #NEWLINE# if ( len ( a ) == 1 ) : #NEWLINE# #INDENT# return str ( self . expand ( to_ascii ( a [ 0 ] ) , stripdot = False ) ) #NEWLINE# #UNINDENT# #UNINDENT# except PermError : #NEWLINE# #INDENT# if ( self . strict > 1 ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . strict > 1 ) : #NEWLINE# #INDENT# raise PermError ( 'Empty domain-spec on exp=' ) #NEWLINE# #UNINDENT# #UNINDENT# return None