From: Louise Kilheeney Date: Fri, 10 Jul 2020 10:10:54 +0000 (+0100) Subject: app/bbdev: support python3 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c3fabbe957a7f1357184f4fd41711fc4afa770e7;p=dpdk.git app/bbdev: support python3 Use of the print function required for python3 compatibility. Signed-off-by: Louise Kilheeney Acked-by: Nicolas Chautru --- diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.py index 0194be0464..e127fb2eb3 100755 --- a/app/test-bbdev/test-bbdev.py +++ b/app/test-bbdev/test-bbdev.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation +from __future__ import print_function import sys import os import argparse @@ -12,7 +13,7 @@ import shlex from threading import Timer def kill(process): - print "ERROR: Test app timed out" + print("ERROR: Test app timed out") process.kill() if "RTE_SDK" in os.environ: @@ -66,7 +67,7 @@ parser.add_argument("-i", "--init-device", args = parser.parse_args() if not os.path.exists(args.testapp_path): - print "No such file: " + args.testapp_path + print("No such file: " + args.testapp_path) sys.exit(1) params = [args.testapp_path]