diff options
author | Zekui Shi <idiot1347@gmail.com> | 2014-05-13 17:35:28 +0800 |
---|---|---|
committer | Vincent Driessen <vincent@3rdcloud.com> | 2014-05-21 09:37:10 +0200 |
commit | 51fee72f664b43c9ffbf4d348e8569ff0ce3d260 (patch) | |
tree | 0b2314b9d4175a0d2c987b4e4a39c8a9a4b8ef2d /examples | |
parent | 0fbc9e48517e8ed7b6cd407b6b1193b3df1d03e9 (diff) | |
download | rq-51fee72f664b43c9ffbf4d348e8569ff0ce3d260.tar.gz |
fix print in example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/run_example.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/run_example.py b/examples/run_example.py index d19a6dc..771b6a8 100644 --- a/examples/run_example.py +++ b/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__': |