loadit/connection_tools.py
def find_free_port():
    """
    Get an available TCP port.
    """
    s = socket.socket()
    s.bind(('localhost', 0))
    port = s.getsockname()[1]
    s.close()
    return port

    Get an available TCP port.
    
Get an available TCP port.
Get an available TCP port .
def find_free_port():
    s = socket.socket()
    s.bind(('localhost', 0))
    port = s.getsockname()[1]
    s.close()
    return port
def find_free_port ( ) : s = socket . socket ( ) s . bind ( ( 'localhost' , 0 ) ) port = s . getsockname ( ) [ 1 ] s . close ( ) return port
Get an available TCP port.
Get an available TCP port .
"""
    Get an available TCP port.
    """