def print_config(config, key=None):
    if key and key in config:
        print config.get(key)
    elif key:
        print '[ERROR] Key `{0}` not found.'.format(key)
    else:
        for key in sorted(config):
            print u'{0}={1}'.format(key, pipes.quote(config.get(key) or ''))
dataset/ETHPy150Open cloudControl/cctrl/cctrl/output.py/print_config/original