diff options
Diffstat (limited to 'client/site_tests/platform_PrinterPpds/multithreaded_processor.py')
-rw-r--r-- | client/site_tests/platform_PrinterPpds/multithreaded_processor.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/site_tests/platform_PrinterPpds/multithreaded_processor.py b/client/site_tests/platform_PrinterPpds/multithreaded_processor.py index 8e82d3a724..518f374b65 100644 --- a/client/site_tests/platform_PrinterPpds/multithreaded_processor.py +++ b/client/site_tests/platform_PrinterPpds/multithreaded_processor.py @@ -2,7 +2,11 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function import threading +from six.moves import range class MultithreadedProcessor(): @@ -54,7 +58,7 @@ class MultithreadedProcessor(): @throws Exception if at least one of the tasks threw any Exception. """ - self._tasks_ids = range(number_of_tasks) # list of tasks ids to process + self._tasks_ids = list(range(number_of_tasks)) # tasks ids to process self._outputs = [None]*number_of_tasks self._error = None |