def get_next_available_port(url, port):
    for offset in xrange(10):
        if port_is_open(url, port + offset):
            port = port + offset
            break
    return port
dataset/ETHPy150Open potatolondon/djangae/djangae/utils.py/get_next_available_port/original