def encode_missing(object_hash, ts_data, ts_meta=None, ts_ctype=None):
 msg = ('%s %s' % (urllib.parse.quote(object_hash), urllib.parse.quote(ts_data.internal)))
 if (ts_meta and (ts_meta != ts_data)):
  delta = (ts_meta.raw - ts_data.raw)
  msg = ('%s m:%x' % (msg, delta))
  if (ts_ctype and (ts_ctype != ts_data)):
   delta = (ts_ctype.raw - ts_data.raw)
   msg = ('%s,t:%x' % (msg, delta))
 return msg

def encode_missing ( object_hash , ts_data , ts_meta = None , ts_ctype = None ) : msg = ( '%s %s' % ( urllib . parse . quote ( object_hash ) , urllib . parse . quote ( ts_data . internal ) ) ) if ( ts_meta and ( ts_meta != ts_data ) ) : delta = ( ts_meta . raw - ts_data . raw ) msg = ( '%s m:%x' % ( msg , delta ) ) if ( ts_ctype and ( ts_ctype != ts_data ) ) : delta = ( ts_ctype . raw - ts_data . raw ) msg = ( '%s,t:%x' % ( msg , delta ) ) return msg
returns a string representing the object hash .