Permalink
Browse files

fix print in example

  • Loading branch information...
1 parent 0fbc9e4 commit 51fee72f664b43c9ffbf4d348e8569ff0ce3d260 @idiot1347 idiot1347 committed with May 13, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 examples/run_example.py
@@ -24,20 +24,20 @@ def main():
done = False
while not done:
os.system('clear')
- print 'Asynchronously: (now = %.2f)' % (time.time() - start_time)
+ print('Asynchronously: (now = %.2f)' % (time.time() - start_time,))
done = True
for x in fib_range:
result = async_results[x].return_value
if result is None:
done = False
result = '(calculating)'
- print 'fib(%d) = %s' % (x, result)
- print ''
- print 'To start the actual in the background, run a worker:'
- print ' python examples/run_worker.py'
+ print('fib(%d) = %s' % (x, result))
+ print('')
+ print('To start the actual in the background, run a worker:')
+ print(' python examples/run_worker.py')
time.sleep(0.2)
- print 'Done'
+ print('Done')
if __name__ == '__main__':

0 comments on commit 51fee72

Please sign in to comment.