parameters: (request)
return_statement: return req_host, erhn
docstring: Return a tuple (request-host, effective request-host name).
  
      As defined by RFC 2965, except both are lowercased.
docstring_summary: Return a tuple (request-host, effective request-host name).
docstring_tokens: Return a tuple ( request - host effective request - host name ) .
function: def eff_request_host(request):
      """Return a tuple (request-host, effective request-host name).
  
      As defined by RFC 2965, except both are lowercased.
  
      """
      erhn = req_host = request_host(request)
      if req_host.find(".") == -1 and not IPV4_RE.search(req_host):
          erhn = req_host + ".local"
      return req_host, erhn
function_tokens: def eff_request_host ( request ) : erhn = req_host = request_host ( request ) if req_host . find ( "." ) == - 1 and not IPV4_RE . search ( req_host ) : erhn = req_host + ".local" return req_host , erhn