From 64bed2c42ff1e1d02b60334fb8fc6672b78f61b6 Mon Sep 17 00:00:00 2001 From: QIU1995NONAME <292529702@qq.com> Date: Fri, 11 Sep 2020 14:32:36 +0800 Subject: [PATCH] Scripts: update proto_build_generator --- scripts/proto_build_generator.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/proto_build_generator.py b/scripts/proto_build_generator.py index d8a83a557c..8a533e386c 100755 --- a/scripts/proto_build_generator.py +++ b/scripts/proto_build_generator.py @@ -166,10 +166,9 @@ def _path_check(build_file_path): ##================ REGEX FOR GRPC CHECK ====================================## PATT_SERVICE = re.compile("^service\s+\S+\s+{$") -PATT_RPC_RET = re.compile("^rpc\s+\S+(\S+)\s+returns") -PATT_RPC_ONLY = re.compile("^rpc\s+\S+(\S+)") -PATT_RET_ONLY = re.compile("^returns\s+(\S+)\s+{") - +PATT_RPC_RET = re.compile("^rpc\s+\S+\(\S+\)\s+returns") +PATT_RPC_ONLY = re.compile("^rpc\s+\S+\(\S+\)") +PATT_RET_ONLY = re.compile("^returns\s+\(\S+\)\s+{") ##=============== GRPC CHECK ==============================================## def grpc_check(fpath): -- GitLab