<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from __future__ import division <EOL> from __future__ import print_function <EOL> import email . mime . text <EOL> import types <EOL> def text ( subject , message , from_address , to_addresses , cc_addresses = None ) : <EOL> """<STR_LIT>""" <EOL> assert not isinstance ( to_addresses , types . StringTypes ) , "<STR_LIT>" <EOL> msg = email . mime . text . MIMEText ( message ) <EOL> msg [ '<STR_LIT>' ] = subject <EOL> msg [ '<STR_LIT>' ] = from_address <EOL> msg [ '<STR_LIT:to>' ] = '<STR_LIT:U+002CU+0020>' . join ( to_addresses ) <EOL> if cc_addresses : <EOL> assert not isinstance ( cc_addresses , types . StringTypes ) , "<STR_LIT>" <EOL> msg [ '<STR_LIT>' ] = '<STR_LIT:U+002CU+0020>' . join ( cc_addresses ) <EOL> return msg . as_string ( ) </s>
