()
Called on exit of Python to close open clients.
Called on exit of Python to close open clients.
Called on exit of Python to close open clients .
def _clean_open_clients():
    """ Called on exit of Python to close open clients. """
    for client_weakref in list(_OPEN_CLIENTS):
        client = client_weakref()

        if client and not client.terminated:
            client.close_connection()
def _clean_open_clients ( ) : for client_weakref in list ( _OPEN_CLIENTS ) : client = client_weakref ( ) if client and not client . terminated : client . close_connection ( )