(cls, uri_string, encoding='utf-8', strict=True,
                    lazy_normalize=True)
return cls(scheme=reference.scheme,
                   userinfo=userinfo,
                   host=host,
                   port=port,
                   path=reference.path,
                   query=reference.query,
                   fragment=reference.fragment,
                   uri_ref=reference,
                   encoding=encoding)
Parse a URI from the given unicode URI string.

        :param str uri_string: Unicode URI to be parsed into a reference.
        :param str encoding: The encoding of the string provided
        :param bool strict: Parse strictly according to :rfc:`3986` if True.
            If False, parse similarly to the standard library's urlparse
            function.
        :returns: :class:`ParseResult` or subclass thereof
Parse a URI from the given unicode URI string.
Parse a URI from the given unicode URI string .
def from_string(cls, uri_string, encoding='utf-8', strict=True,
                    lazy_normalize=True):
        """Parse a URI from the given unicode URI string.

        :param str uri_string: Unicode URI to be parsed into a reference.
        :param str encoding: The encoding of the string provided
        :param bool strict: Parse strictly according to :rfc:`3986` if True.
            If False, parse similarly to the standard library's urlparse
            function.
        :returns: :class:`ParseResult` or subclass thereof
        """
        reference = uri.URIReference.from_string(uri_string, encoding)
        if not lazy_normalize:
            reference = reference.normalize()
        userinfo, host, port = authority_from(reference, strict)

        return cls(scheme=reference.scheme,
                   userinfo=userinfo,
                   host=host,
                   port=port,
                   path=reference.path,
                   query=reference.query,
                   fragment=reference.fragment,
                   uri_ref=reference,
                   encoding=encoding)
def from_string ( cls , uri_string , encoding = 'utf-8' , strict = True , lazy_normalize = True ) : reference = uri . URIReference . from_string ( uri_string , encoding ) if not lazy_normalize : reference = reference . normalize ( ) userinfo , host , port = authority_from ( reference , strict ) return cls ( scheme = reference . scheme , userinfo = userinfo , host = host , port = port , path = reference . path , query = reference . query , fragment = reference . fragment , uri_ref = reference , encoding = encoding )