From 05e961365f94c4841202bd405451d4007f781344 Mon Sep 17 00:00:00 2001 From: Xiaoyang LI Date: Wed, 23 Oct 2019 11:21:57 +0800 Subject: [PATCH] fix python3 build optimize tool error * fix python3 build error, test=develop * fix ci, test=develop --- lite/tools/cmake_tools/create_fake_kernel_registry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lite/tools/cmake_tools/create_fake_kernel_registry.py b/lite/tools/cmake_tools/create_fake_kernel_registry.py index 7031c8d18b..9edd6d836d 100644 --- a/lite/tools/cmake_tools/create_fake_kernel_registry.py +++ b/lite/tools/cmake_tools/create_fake_kernel_registry.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from __future__ import print_function import sys import logging from ast import RegisterLiteKernelParser @@ -51,7 +52,7 @@ class %s : public KernelLite { with open(ops_list_path) as f: paths = set([path for path in f]) for path in paths: - print 'path', path + print('path', path) with open(path.strip()) as g: c = g.read() kernel_parser = RegisterLiteKernelParser(c) -- GitLab