def frame_msg_ipc(body, header=None, raw_body=False):
 framed_msg = {}
 if (header is None):
  header = {}
 framed_msg['head'] = header
 framed_msg['body'] = body
 if six.PY2:
  return msgpack.dumps(framed_msg)
 else:
  return msgpack.dumps(framed_msg, use_bin_type=True)

def frame_msg_ipc ( body , header = None , raw_body = False ) : framed_msg = { } if ( header is None ) : header = { } framed_msg [ 'head' ] = header framed_msg [ 'body' ] = body if six . PY2 : return msgpack . dumps ( framed_msg ) else : return msgpack . dumps ( framed_msg , use_bin_type = True )
frame the given message with our wire protocol for ipc for ipc .