@put('/:hypervisor/:host/guests/:guest_id/disks/:disk_id')
def disk_update(hypervisor, host, guest_id, disk_id):
    response.content_type = "application/json"
    manager = create_manager(hypervisor, host)
    data = request.body.readline()
    if not data:
        abort(400, 'No data received')
    data = json.loads(data)
    nwi_info = manager.disk_update(guest_id, disk_id, data)

    manager.logout()

    return json.dumps(nwi_info)
Test whether any subexpression matches any of the patterns.
dataset/ETHPy150Open locaweb/simplestack/src/simplestack/server.py/disk_update--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.has