def protocol_from_http(protocol_str):
 return (int(protocol_str[5]), int(protocol_str[7]))

def protocol_from_http ( protocol_str ) : return ( int ( protocol_str [ 5 ] ) , int ( protocol_str [ 7 ] ) )
return a protocol tuple from the given http/x .