#NEWLINE# @ staticmethod #NEWLINE# def _make_addr_alias_target( x , addresses , which ) : #NEWLINE# #INDENT# if isinstance ( x , str ) : #NEWLINE# #INDENT# addresses [ 'recipients' ] . append ( x ) #NEWLINE# addresses [ which ] = x #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( x , list ) or isinstance ( x , tuple ) ) : #NEWLINE# #INDENT# if ( not all ( [ isinstance ( k , str ) for k in x ] ) ) : #NEWLINE# #INDENT# raise YagAddressError #NEWLINE# #UNINDENT# addresses [ 'recipients' ] . extend ( x ) #NEWLINE# addresses [ which ] = '; ' . join ( x ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( x , dict ) : #NEWLINE# #INDENT# addresses [ 'recipients' ] . extend ( x . keys ( ) ) #NEWLINE# addresses [ which ] = '; ' . join ( x . values ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise YagAddressError