(request)
return req_host, erhn
Return a tuple (request-host, effective request-host name).

    As defined by RFC 2965, except both are lowercased.
Return a tuple (request-host, effective request-host name).
Return a tuple ( request - host effective request - host name ) .
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
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