def _urljoin(base, url):
 parsed = urlparse(base)
 scheme = parsed.scheme
 return urlparse(urljoin(parsed._replace(scheme='http').geturl(), url))._replace(scheme=scheme).geturl()

def _urljoin ( base , url ) : parsed = urlparse ( base ) scheme = parsed . scheme return urlparse ( urljoin ( parsed . _replace ( scheme = 'http' ) . geturl ( ) , url ) ) . _replace ( scheme = scheme ) . geturl ( )
construct a full url by combining a "base url" with another url .