sera/commands/addrevoke.py
def revoke(ctx, client_key):
    """remove client public key from known clients"""
    if ctx.obj['local']:
        clients = get_allowed_clients(ctx.obj['known_clients'])
        with ctx.obj['known_clients'].open(mode='w') as file:
            for existing_client_key in clients:
                if client_key != existing_client_key:
                    file.writelines([client_key])
    else:
        remote('revoke', ctx)
remove client public key from known clients
remove client public key from known clients
remove client public key from known clients
def revoke(ctx, client_key):
    if ctx.obj['local']:
        clients = get_allowed_clients(ctx.obj['known_clients'])
        with ctx.obj['known_clients'].open(mode='w') as file:
            for existing_client_key in clients:
                if client_key != existing_client_key:
                    file.writelines([client_key])
    else:
        remote('revoke', ctx)
def revoke ( ctx , client_key ) : if ctx . obj [ 'local' ] : clients = get_allowed_clients ( ctx . obj [ 'known_clients' ] ) with ctx . obj [ 'known_clients' ] . open ( mode = 'w' ) as file : for existing_client_key in clients : if client_key != existing_client_key : file . writelines ( [ client_key ] ) else : remote ( 'revoke' , ctx )
remove client public key from known clients
remove client public key from known clients
"""remove client public key from known clients"""
ctx
client_key