[autotest] Make cli/job.py Python3-compatible
I am only making enough changes to get cli/job.py
to compile as Python3.
BUG=chromium:990593
TEST=python3 -m python_compile cli/job.py
Change-Id: I5684c26fab4d2f9031357552a88a9b79da9401f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2298215
Tested-by: Gregory Nisbet <[email protected]>
Reviewed-by: Mike Frysinger <[email protected]>
Commit-Queue: Gregory Nisbet <[email protected]>
diff --git a/cli/job.py b/cli/job.py
index 1c8cee1..1ef7bb3 100644
--- a/cli/job.py
+++ b/cli/job.py
@@ -18,6 +18,8 @@
# pylint: disable=missing-docstring
+from __future__ import print_function
+
import getpass, re
from autotest_lib.cli import topic_common, action_common
from autotest_lib.client.common_lib import control_data
@@ -605,7 +607,7 @@
def execute(self):
data = {'job__id__in': self.jobids}
self.execute_rpc(op='abort_host_queue_entries', **data)
- print 'Aborting jobs: %s' % ', '.join(self.jobids)
+ print('Aborting jobs: %s' % ', '.join(self.jobids))
def get_items(self):