tools/check_git_config.py
def read_netrc_user(netrc_obj, host):
  """Reads 'user' field of a host entry in netrc.

  Returns empty string if netrc is missing, or host is not there.
  """
  if not netrc_obj:
    return ''
  entry = netrc_obj.authenticators(host)
  if not entry:
    return ''
  return entry[0]
Reads 'user' field of a host entry in netrc.

  Returns empty string if netrc is missing, or host is not there.
  
Reads 'user' field of a host entry in netrc.
Returns empty string if netrc is missing, or host is not there.
Reads ' user ' field of a host entry in netrc . Returns empty string if netrc is missing or host is not there .
def read_netrc_user(netrc_obj, host):
  if not netrc_obj:
    return ''
  entry = netrc_obj.authenticators(host)
  if not entry:
    return ''
  return entry[0]
def read_netrc_user ( netrc_obj , host ) : if not netrc_obj : return '' entry = netrc_obj . authenticators ( host ) if not entry : return '' return entry [ 0 ]
Reads 'user' field of a host entry in netrc.
Reads ' user ' field of a host entry in netrc .
"""Reads 'user' field of a host entry in netrc.

  Returns empty string if netrc is missing, or host is not there.
  """
netrc_obj
host