(cls, scheme=None, userinfo=None, host=None, port=None,
                   path=None, query=None, fragment=None, encoding='utf-8')
return cls(scheme=uri_ref.scheme,
                   userinfo=userinfo,
                   host=host,
                   port=port,
                   path=uri_ref.path,
                   query=uri_ref.query,
                   fragment=uri_ref.fragment,
                   uri_ref=uri_ref,
                   encoding=encoding)
Create a ParseResult instance from its parts.
Create a ParseResult instance from its parts.
Create a ParseResult instance from its parts .
def from_parts(cls, scheme=None, userinfo=None, host=None, port=None,
                   path=None, query=None, fragment=None, encoding='utf-8'):
        """Create a ParseResult instance from its parts."""
        authority = ''
        if userinfo is not None:
            authority += userinfo + '@'
        if host is not None:
            authority += host
        if port is not None:
            authority += ':{0}'.format(port)
        uri_ref = uri.URIReference(scheme=scheme,
                                   authority=authority,
                                   path=path,
                                   query=query,
                                   fragment=fragment,
                                   encoding=encoding).normalize()
        userinfo, host, port = authority_from(uri_ref, strict=True)
        return cls(scheme=uri_ref.scheme,
                   userinfo=userinfo,
                   host=host,
                   port=port,
                   path=uri_ref.path,
                   query=uri_ref.query,
                   fragment=uri_ref.fragment,
                   uri_ref=uri_ref,
                   encoding=encoding)
def from_parts ( cls , scheme = None , userinfo = None , host = None , port = None , path = None , query = None , fragment = None , encoding = 'utf-8' ) : authority = '' if userinfo is not None : authority += userinfo + '@' if host is not None : authority += host if port is not None : authority += ':{0}' . format ( port ) uri_ref = uri . URIReference ( scheme = scheme , authority = authority , path = path , query = query , fragment = fragment , encoding = encoding ) . normalize ( ) userinfo , host , port = authority_from ( uri_ref , strict = True ) return cls ( scheme = uri_ref . scheme , userinfo = userinfo , host = host , port = port , path = uri_ref . path , query = uri_ref . query , fragment = uri_ref . fragment , uri_ref = uri_ref , encoding = encoding )