From a1018807902b6f45b34c4e3af6ca764de347ee52 Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Mon, 28 Dec 2020 15:36:11 +0800 Subject: prepare_build_config.py: update print to support python3 for syntax error reported like the following: 12:26:34 + /home/buildslave/srv/aosp-master/build-tools/build-scripts/../node/prepare_build_config.py --base64 QlVJTERfQ09ORklHX1JFUE89aHR0cDovL2FuZHJvaWQtZ2l0LmxpbmFyby5vcmcvZ2l0L2FuZHJvaWQtYnVpbGQtY29uZmlncy5naXQKQlVJTERfQ09ORklHX0JSQU5DSD1tYXN0ZXIK 12:26:34 File "/home/buildslave/srv/aosp-master/build-tools/build-scripts/../node/prepare_build_config.py", line 98 12:26:34 print "Invalid build config syntax: " + l 12:26:34 ^ 12:26:34 SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Invalid build config syntax: " + l)? Signed-off-by: Yongqin Liu Change-Id: Ia731a105ffcb3ff1f6e05948fd11d56ef822858c --- node/prepare_build_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/prepare_build_config.py b/node/prepare_build_config.py index ca88cda..a49c281 100755 --- a/node/prepare_build_config.py +++ b/node/prepare_build_config.py @@ -95,7 +95,7 @@ def convert_config_to_shell(config_text, out_filename): if not l or l[0] == "#": continue if not re.match(r"[A-Za-z][A-Za-z0-9_]*=", l): - print "Invalid build config syntax: " + l + print("Invalid build config syntax: " + l) sys.exit(1) var, val = l.split("=", 1) val = shell_unquote(val) -- cgit v1.2.3