def protocol_from_http(protocol_str):
    return int(protocol_str[5]), int(protocol_str[7])
Return a protocol tuple from the given 'HTTP/x.y' string.
dataset/ETHPy150Open clips/pattern/pattern/server/cherrypy/cherrypy/lib/httputil.py/protocol_from_http