(client)
the clients that are affected if the given one is to be changed
the clients that are affected if the given one is to be changed
the clients that are affected if the given one is to be changed
def _affected_clients(client):
    """the clients that are affected if the given one is to be changed"""
    if client.sync_group:
        # if the client is synced, all are affected
        return client.sync_group.client_set.all()

    else:
        # if its not synced, only the client is affected
        return [client]
def _affected_clients ( client ) : if client . sync_group : # if the client is synced, all are affected return client . sync_group . client_set . all ( ) else : # if its not synced, only the client is affected return [ client ]