You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zh...@apache.org on 2020/02/10 13:50:53 UTC
[incubator-doris] branch master updated: Compatible with python3 in
build (#2876)
This is an automated email from the ASF dual-hosted git repository.
zhaoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 3a8e783 Compatible with python3 in build (#2876)
3a8e783 is described below
commit 3a8e78344477db292b4024c274ce5c7042ad440f
Author: HangyuanLiu <46...@qq.com>
AuthorDate: Mon Feb 10 21:50:42 2020 +0800
Compatible with python3 in build (#2876)
---
be/src/codegen/gen_ir_descriptions.py | 5 ++++-
gensrc/script/gen_functions.py | 4 ++--
gensrc/script/gen_vector_functions.py | 4 ++--
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/be/src/codegen/gen_ir_descriptions.py b/be/src/codegen/gen_ir_descriptions.py
index dbabc7a..5b4d997 100755
--- a/be/src/codegen/gen_ir_descriptions.py
+++ b/be/src/codegen/gen_ir_descriptions.py
@@ -1,3 +1,6 @@
+#!/usr/bin/env python
+# encoding: utf-8
+
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
@@ -176,7 +179,7 @@ if not os.path.exists(BE_PATH):
os.makedirs(BE_PATH)
if __name__ == "__main__":
- print "Generating IR description files"
+ print("Generating IR description files")
enums_file = open(BE_PATH + 'doris_ir_functions.h', 'w')
enums_file.write(enums_preamble)
diff --git a/gensrc/script/gen_functions.py b/gensrc/script/gen_functions.py
index ad3a969..d03090f 100755
--- a/gensrc/script/gen_functions.py
+++ b/gensrc/script/gen_functions.py
@@ -712,12 +712,12 @@ if __name__ == "__main__":
# Validate the input is correct
if len(return_types) != 1 and len(return_types) != num_functions:
- print "Invalid Declaration: " + func_data
+ print("Invalid Declaration: " + func_data)
sys.exit(1)
for args in signatures:
if len(args) != 1 and len(args) != num_functions:
- print "Invalid Declaration: " + func_data
+ print("Invalid Declaration: " + func_data)
sys.exit(1)
# Iterate over every function signature to generate
diff --git a/gensrc/script/gen_vector_functions.py b/gensrc/script/gen_vector_functions.py
index 75ecbfe..40c7482 100755
--- a/gensrc/script/gen_vector_functions.py
+++ b/gensrc/script/gen_vector_functions.py
@@ -525,12 +525,12 @@ if __name__ == "__main__":
# Validate the input is correct
if len(return_types) != 1 and len(return_types) != num_functions:
- print "Invalid Declaration: " + func_data
+ print("Invalid Declaration: " + func_data)
sys.exit(1)
for args in signatures:
if len(args) != 1 and len(args) != num_functions:
- print "Invalid Declaration: " + func_data
+ print("Invalid Declaration: " + func_data)
sys.exit(1)
# Iterate over every function signature to generate
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org