(resp, caps_passed_in)
We're about to return from a call; ask all the capabilities that got passed in whether they want to send
       any updates to our caller.
We're about to return from a call; ask all the capabilities that got passed in whether they want to send
       any updates to our caller.
We re about to return from a call ; ask all the capabilities that got passed in whether they want to send any updates to our caller .
def fill_out_cap_updates(resp, caps_passed_in):
    """We're about to return from a call; ask all the capabilities that got passed in whether they want to send
       any updates to our caller."""

    for cap in caps_passed_in:
        update = cap._get_update()
        if update is not None:
            cu = resp.get('capUpdates')
            if cu is None:
                cu = resp['capUpdates'] = {}
            cu[json.dumps(cap.scope)] = update
def fill_out_cap_updates ( resp , caps_passed_in ) : for cap in caps_passed_in : update = cap . _get_update ( ) if update is not None : cu = resp . get ( 'capUpdates' ) if cu is None : cu = resp [ 'capUpdates' ] = { } cu [ json . dumps ( cap . scope ) ] = update