diff options
Diffstat (limited to 'Doc/includes/mp_workers.py')
-rw-r--r-- | Doc/includes/mp_workers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/includes/mp_workers.py b/Doc/includes/mp_workers.py index 07e4cdd..47dfb54 100644 --- a/Doc/includes/mp_workers.py +++ b/Doc/includes/mp_workers.py @@ -65,9 +65,9 @@ def test(): Process(target=worker, args=(task_queue, done_queue)).start() # Get and print results - print 'Unordered results:' + print('Unordered results:') for i in range(len(TASKS1)): - print '\t', done_queue.get() + print('\t', done_queue.get()) # Add more tasks using `put()` for task in TASKS2: @@ -75,7 +75,7 @@ def test(): # Get and print some more results for i in range(len(TASKS2)): - print '\t', done_queue.get() + print('\t', done_queue.get()) # Tell child processes to stop for i in range(NUMBER_OF_PROCESSES): |