def Dial(proto, *args):
    """ A Dial is a generic client for stream-oriented protocols.

    Example::

        conn, err = Dial("tcp", ('127.0.0.1', 8000))
        conn.write("hello")
        print(conn.read())
    """

    try:
        dial_func = DIAL_HANDLERS[proto]
    except __HOLE__:
        raise ValueError("type should be tcp, udp or unix")
    return dial_func(*args)
dataset/ETHPy150Open benoitc/flower/flower/net/__init__.py/Dial