def print_worker_list(workers):
    print 'Workers'
    if has_str_format:
        print ' {0:3} {1:11} {2}'.format('nr.', 'wrk_id', 'command')
        for count, worker in enumerate(workers):
            print ' {0:3} {1:11} {2}'.format(count + 1, worker['wrk_id'], worker['command'])
    else:
        print ' %-3ls %-11ls %s' % ('nr.', 'wrk_id', 'command')
        for count, worker in enumerate(workers):
            print ' %-3ls %-11ls %s' % (count + 1, worker['wrk_id'], worker['command'])
dataset/ETHPy150Open cloudControl/cctrl/cctrl/output.py/print_worker_list/original