Revision b482315a kamaki/cli/utils.py

b/kamaki/cli/utils.py
393 393
    return user_response[0] in true_resp + ['\n']
394 394

  
395 395

  
396
def spiner():
397
    spins = ('/', '-', '\\', '|')
398
    i = 0
399
    stdout.write(' ')
400
    while True:
401
        stdout.write('\b%s' % spins[i % len(spins)])
402
        stdout.flush()
403
        i += 1
404
        yield
405

  
396 406
if __name__ == '__main__':
397 407
    examples = ['la_la le_le li_li',
398 408
        '\'la la\' \'le le\' \'li li\'',

Also available in: Unified diff