def addrport(string):
    """
    Receive '<addr>:<port>' and return (<addr>,<port>).
    Used during argparse CLI parsing.
    """
    try:
        return pyptlib.util.parse_addr_spec(string, resolve=True)
    except __HOLE__, err:
        raise argparse.ArgumentTypeError(err)
dataset/ETHPy150Open isislovecruft/obfsproxy/obfsproxy/transports/base.py/addrport