

def baseDomain(domain, includeScheme=True):
    'Return only the network location portion of the given domain\n    unless includeScheme is True\n    '
    result = ''
    url = urlparse(result)
    if includeScheme:
        result = ('%s://' % url.scheme)
    if (len(url.netloc) == 0):
        result += url.path
    else:
        result += url.netloc
    return result

dataset/ETHPy150Open bear/python-indieweb/indieweb.py baseDomain/VarMisuse@24/62 `domain`->`result`