fix print in example

main
Zekui Shi 11 years ago committed by Vincent Driessen
parent 0fbc9e4851
commit 51fee72f66

@ -24,20 +24,20 @@ def main():
done = False done = False
while not done: while not done:
os.system('clear') os.system('clear')
print 'Asynchronously: (now = %.2f)' % (time.time() - start_time) print('Asynchronously: (now = %.2f)' % (time.time() - start_time,))
done = True done = True
for x in fib_range: for x in fib_range:
result = async_results[x].return_value result = async_results[x].return_value
if result is None: if result is None:
done = False done = False
result = '(calculating)' result = '(calculating)'
print 'fib(%d) = %s' % (x, result) print('fib(%d) = %s' % (x, result))
print '' print('')
print 'To start the actual in the background, run a worker:' print('To start the actual in the background, run a worker:')
print ' python examples/run_worker.py' print(' python examples/run_worker.py')
time.sleep(0.2) time.sleep(0.2)
print 'Done' print('Done')
if __name__ == '__main__': if __name__ == '__main__':

Loading…
Cancel
Save