def decode_wanted(parts):
 wanted = {}
 key_map = dict(d='data', m='meta')
 if parts:
  for k in key_map:
   if (k in parts[0]):
    wanted[key_map[k]] = True
 if (not wanted):
  wanted['data'] = True
 return wanted

def decode_wanted ( parts ) : wanted = { } key_map = dict ( d = 'data' , m = 'meta' ) if parts : for k in key_map : if ( k in parts [ 0 ] ) : wanted [ key_map [ k ] ] = True if ( not wanted ) : wanted [ 'data' ] = True return wanted
parse missing_check line parts to determine which parts of local diskfile were wanted by the receiver .