<s> """<STR_LIT>""" <EOL> from django . core import mail <EOL> from django . core . mail . backends . base import BaseEmailBackend <EOL> class EmailBackend ( BaseEmailBackend ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( EmailBackend , self ) . __init__ ( * args , ** kwargs ) <EOL> if not hasattr ( mail , '<STR_LIT>' ) : <EOL> mail . outbox = [ ] <EOL> def send_messages ( self , messages ) : <EOL> """<STR_LIT>""" <EOL> msg_count = <NUM_LIT:0> <EOL> for message in messages : <EOL> message . message ( ) <EOL> msg_count += <NUM_LIT:1> <EOL> mail . outbox . extend ( messages ) <EOL> return msg_count </s>
