lt, this method only raises :class:`URLParseError` on invalid port and IPv6 values in the host portion of the URL. rY