def get_server_number(ipport, ipport2server):
    server_number = ipport2server[ipport]
    server, number = server_number[:-1], server_number[-1:]
    try:
        number = int(number)
    except __HOLE__:
        # probably the proxy
        return server_number, None
    return server, number
dataset/ETHPy150Open openstack/swift/test/probe/common.py/get_server_number