#NEWLINE# def _create_alternatives( self , msg ) : #NEWLINE# #INDENT# encoding = ( encoding . encoding or settings . DEFAULT_CHARSET ) #NEWLINE# if self . alternatives : #NEWLINE# #INDENT# body_msg = msg #NEWLINE# msg = SafeMIMEMultipart ( _subtype = self . alternative_subtype , encoding = encoding ) #NEWLINE# if self . body : #NEWLINE# #INDENT# msg . attach ( body_msg ) #NEWLINE# #UNINDENT# for alternative in self . alternatives : #NEWLINE# #INDENT# msg . attach ( self . _create_mime_attachment ( * alternative ) ) #NEWLINE# #UNINDENT# #UNINDENT# return msg