#NEWLINE# def expand_domain( self , arg ) : #NEWLINE# #INDENT# 'validate and expand domain-spec' #NEWLINE# if RE_TOPLAB . split ( arg ) [ ( - 1 ) ] : #NEWLINE# #INDENT# raise PermError ( 'Invalid domain found (use FQDN)' , arg ) #NEWLINE# #UNINDENT# return self . expand ( arg )