<s> """<STR_LIT>""" <EOL> from boto . sqs . message import Message <EOL> import yaml <EOL> class YAMLMessage ( Message ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , queue = None , body = '<STR_LIT>' , xml_attrs = None ) : <EOL> self . data = None <EOL> super ( YAMLMessage , self ) . __init__ ( queue , body ) <EOL> def set_body ( self , body ) : <EOL> self . data = yaml . safe_load ( body ) <EOL> def get_body ( self ) : <EOL> return yaml . dump ( self . data ) </s>
