def _prep_headers_to_info(headers, server_type):
 meta = {}
 sysmeta = {}
 other = {}
 for (key, val) in dict(headers).items():
  lkey = key.lower()
  if is_user_meta(server_type, lkey):
   meta[strip_user_meta_prefix(server_type, lkey)] = val
  elif is_sys_meta(server_type, lkey):
   sysmeta[strip_sys_meta_prefix(server_type, lkey)] = val
  else:
   other[lkey] = val
 return (other, meta, sysmeta)

def _prep_headers_to_info ( headers , server_type ) : meta = { } sysmeta = { } other = { } for ( key , val ) in dict ( headers ) . items ( ) : lkey = key . lower ( ) if is_user_meta ( server_type , lkey ) : meta [ strip_user_meta_prefix ( server_type , lkey ) ] = val elif is_sys_meta ( server_type , lkey ) : sysmeta [ strip_sys_meta_prefix ( server_type , lkey ) ] = val else : other [ lkey ] = val return ( other , meta , sysmeta )
helper method that iterates once over a dict of headers .