From 2f22dd6b1ae97ed0380887ed78337870ce70f5c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=ED=98=84=EC=8B=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Principal=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Wed, 12 Sep 2018 13:26:44 +0900 Subject: [PATCH] Make resolve_includes.py work for Python 2 and 3 (#2681) Previously lines with `print` work only on Python 2. Modified for Python 3. Signed-off-by: Hyun Sik Yoon --- libs/ARMComputeEx/resolve_includes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/ARMComputeEx/resolve_includes.py b/libs/ARMComputeEx/resolve_includes.py index 929fe48..b3e2528 100644 --- a/libs/ARMComputeEx/resolve_includes.py +++ b/libs/ARMComputeEx/resolve_includes.py @@ -54,7 +54,7 @@ def resolve_includes(target, source): for file in files: done = False tmp_file = file[1].file_contents - print file[1].target_name + print(file[1].target_name) while not done: file_count = 0 updated_file = [] @@ -92,11 +92,11 @@ cl_files = glob.glob('src/core/CL/cl_kernels/*.cl') cl_files += glob.glob('src/core/CL/cl_kernels/*.h') # DEBUG: print cl files -print "cl_files:" -print cl_files +print("cl_files:") +print(cl_files) embed_files = [f + "embed" for f in cl_files] -print "embed_files:" -print embed_files +print("embed_files:") +print(embed_files) resolve_includes(embed_files, cl_files) -- 2.7.4