(url)
return urllib.parse.SplitResult(scheme, netloc, path, query, fragment)
Parameters:
      url: URL string to split.
    Returns: urlparse.SplitResult tuple subclass, just like
      urlparse.urlsplit() returns, with fields (scheme, netloc, path,
      query, fragment, username, password, hostname, port). See
        http://docs.python.org/library/urlparse.html#urlparse.urlsplit
      for more details on urlsplit().
Parameters:
      url: URL string to split.
    Returns: urlparse.SplitResult tuple subclass, just like
      urlparse.urlsplit() returns, with fields (scheme, netloc, path,
      query, fragment, username, password, hostname, port). See
        http://docs.python.org/library/urlparse.html#urlparse.urlsplit
      for more details on urlsplit().
Parameters : url : URL string to split . Returns : urlparse . SplitResult tuple subclass just like urlparse . urlsplit () returns with fields ( scheme netloc path query fragment username password hostname port ) . See http : // docs . python . org / library / urlparse . html#urlparse . urlsplit for more details on urlsplit () .
def urlsplit(url):
    """
    Parameters:
      url: URL string to split.
    Returns: urlparse.SplitResult tuple subclass, just like
      urlparse.urlsplit() returns, with fields (scheme, netloc, path,
      query, fragment, username, password, hostname, port). See
        http://docs.python.org/library/urlparse.html#urlparse.urlsplit
      for more details on urlsplit().
    """
    original_scheme = get_scheme(url)

    # urlsplit() parses URLs differently depending on whether or not the URL's
    # scheme is in any of
    #
    #   urllib.parse.uses_fragment
    #   urllib.parse.uses_netloc
    #   urllib.parse.uses_params
    #   urllib.parse.uses_query
    #   urllib.parse.uses_relative
    #
    # For consistent URL parsing, switch the URL's scheme to 'http', a scheme
    # in all of the aforementioned uses_* lists, and afterwards revert to the
    # original scheme (which may or may not be in some, or all, of the the
    # uses_* lists).
    if original_scheme is not None:
        url = set_scheme(url, 'http')

    scheme, netloc, path, query, fragment = urllib.parse.urlsplit(url)

    # Detect and preserve the '//' before the netloc, if present. E.g. preserve
    # URLs like 'http:', 'http://', and '///sup' correctly.
    after_scheme = strip_scheme(url)
    if after_scheme.startswith('//'):
        netloc = netloc or ''
    else:
        netloc = None

    scheme = original_scheme

    return urllib.parse.SplitResult(scheme, netloc, path, query, fragment)
def urlsplit ( url ) : original_scheme = get_scheme ( url ) # urlsplit() parses URLs differently depending on whether or not the URL's # scheme is in any of # #   urllib.parse.uses_fragment #   urllib.parse.uses_netloc #   urllib.parse.uses_params #   urllib.parse.uses_query #   urllib.parse.uses_relative # # For consistent URL parsing, switch the URL's scheme to 'http', a scheme # in all of the aforementioned uses_* lists, and afterwards revert to the # original scheme (which may or may not be in some, or all, of the the # uses_* lists). if original_scheme is not None : url = set_scheme ( url , 'http' ) scheme , netloc , path , query , fragment = urllib . parse . urlsplit ( url ) # Detect and preserve the '//' before the netloc, if present. E.g. preserve # URLs like 'http:', 'http://', and '///sup' correctly. after_scheme = strip_scheme ( url ) if after_scheme . startswith ( '//' ) : netloc = netloc or '' else : netloc = None scheme = original_scheme return urllib . parse . SplitResult ( scheme , netloc , path , query , fragment )