bin/workshops.py
def adjust(info, url):
    '''Perform in-place adjustments to info.'''
    for field in ADJUSTMENTS:
        if field not in info:
            fail('Field {0} missing from info for URL {1}', field, url)
        key = info[field]
        if key in ADJUSTMENTS[field]:
            info[field] = ADJUSTMENTS[field][key]
Perform in-place adjustments to info.
Perform in-place adjustments to info.
Perform in - place adjustments to info .
def adjust(info, url):
    for field in ADJUSTMENTS:
        if field not in info:
            fail('Field {0} missing from info for URL {1}', field, url)
        key = info[field]
        if key in ADJUSTMENTS[field]:
            info[field] = ADJUSTMENTS[field][key]
def adjust ( info , url ) : for field in ADJUSTMENTS : if field not in info : fail ( 'Field {0} missing from info for URL {1}' , field , url ) key = info [ field ] if key in ADJUSTMENTS [ field ] : info [ field ] = ADJUSTMENTS [ field ] [ key ]
Perform in-place adjustments to info.
Perform in - place adjustments to info .
'''Perform in-place adjustments to info.'''
info
url