'Make a L{URLPath} from a L{bytes}.
@param url: A L{bytes} representation of a URL.
@type url: L{bytes}
@return: a new L{URLPath} derived from the given L{bytes}.
@rtype: L{URLPath}
@since: 15.4'

@classmethod
def fromBytes(klass, url):

    if (not isinstance(url, bytes)):
        raise ValueError("'url'    must    be    bytes")
    quoted = urlquote(url, safe=_allascii)
    if isinstance(quoted, bytes):
        quoted = quoted.decode('ascii')
    return klass.fromString(quoted)
