<s> doc = """<STR_LIT>""" <EOL> from supervisor import childutils <EOL> from superlance . process_state_email_monitor import ProcessStateEmailMonitor <EOL> class CrashSMS ( ProcessStateEmailMonitor ) : <EOL> process_state_events = [ '<STR_LIT>' ] <EOL> def __init__ ( self , ** kwargs ) : <EOL> ProcessStateEmailMonitor . __init__ ( self , ** kwargs ) <EOL> self . now = kwargs . get ( '<STR_LIT>' , None ) <EOL> def get_process_state_change_msg ( self , headers , payload ) : <EOL> pheaders , pdata = childutils . eventdata ( payload + '<STR_LIT:\n>' ) <EOL> if int ( pheaders [ '<STR_LIT>' ] ) : <EOL> return None <EOL> txt = '<STR_LIT>' % pheaders <EOL> return '<STR_LIT>' % ( txt , childutils . get_asctime ( self . now ) ) <EOL> def main ( ) : <EOL> crash = CrashSMS . create_from_cmd_line ( ) <EOL> crash . run ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
