def _get_url_base(self, url):
    '\n        Return the base of a URL\n        '
    s = urlsplit(url)
    return urlunsplit([s.scheme, s.netloc, '', '', ''])
Return the base of a URL
def _get_url_base(self, url):
    '\n        \n        '
    s = urlsplit(url)
    return urlunsplit([s.scheme, s.netloc, , , ])