fdutils/web/web.py
def parse_http_url(url):
    """ reformats urllib.parse.urlparse to use in our selenium utils

        we join scheme and hostname from urlparse, also add an is_ssl part and check that we have scheme (http, https, etc)

        Returns:
            ParseURLResult: a named tuple with attributes baseurl, port, is_ssl, path, params, query and fragment
    """
    ParseURLResult = collections.namedtuple(
        'ParseURLResult', 'baseurl port is_ssl path params query fragment')

    parsed = urllib.parse.urlparse(url)
    if not parsed.scheme:
        raise AttributeError('URL {} is not well formed we need the protocol (http/https/ftp/etc...)'.format(url))

    return ParseURLResult(parsed.scheme + '://' + parsed.hostname, parsed.port, parsed.scheme == 'https', parsed.path,
                          parsed.params, parsed.query, parsed.fragment)
 reformats urllib.parse.urlparse to use in our selenium utils

        we join scheme and hostname from urlparse, also add an is_ssl part and check that we have scheme (http, https, etc)

        Returns:
            ParseURLResult: a named tuple with attributes baseurl, port, is_ssl, path, params, query and fragment
    
reformats urllib.parse.urlparse to use in our selenium utils
we join scheme and hostname from urlparse, also add an is_ssl part and check that we have scheme
reformats urllib . parse . urlparse to use in our selenium utils we join scheme and hostname from urlparse also add an is_ssl part and check that we have scheme
def parse_http_url(url):
    ParseURLResult = collections.namedtuple(
        'ParseURLResult', 'baseurl port is_ssl path params query fragment')
    parsed = urllib.parse.urlparse(url)
    if not parsed.scheme:
        raise AttributeError('URL {} is not well formed we need the protocol (http/https/ftp/etc...)'.format(url))
    return ParseURLResult(parsed.scheme + '://' + parsed.hostname, parsed.port, parsed.scheme == 'https', parsed.path,
                          parsed.params, parsed.query, parsed.fragment)
def parse_http_url ( url ) : ParseURLResult = collections . namedtuple ( 'ParseURLResult' , 'baseurl port is_ssl path params query fragment' ) parsed = urllib . parse . urlparse ( url ) if not parsed . scheme : raise AttributeError ( 'URL {} is not well formed we need the protocol (http/https/ftp/etc...)' . format ( url ) ) return ParseURLResult ( parsed . scheme + '://' + parsed . hostname , parsed . port , parsed . scheme == 'https' , parsed . path , parsed . params , parsed . query , parsed . fragment )
reformats urllib.parse.urlparse to use in our selenium utils
we join scheme and hostname from urlparse, also add an is_ssl part and check that we have scheme (http, https, etc)
reformats urllib . parse . urlparse to use in our selenium utils we join scheme and hostname from urlparse also add an is_ssl part and check that we have scheme ( http https etc )
""" reformats urllib.parse.urlparse to use in our selenium utils

        we join scheme and hostname from urlparse, also add an is_ssl part and check that we have scheme (http, https, etc)

        Returns:
            ParseURLResult: a named tuple with attributes baseurl, port, is_ssl, path, params, query and fragment
    """
a named tuple with attributes baseurl, port, is_ssl, path, params, query and fragment
a named tuple with attributes baseurl port is_ssl path params query and fragment
ParseURLResult
url