From 1ee6b15baf74442087faf855f160d8b73c35bfba Mon Sep 17 00:00:00 2001 From: plt Date: Mon, 7 May 2012 11:35:01 +0800 Subject: [PATCH] Update pygencode.py, do not gen code for object and objlist --- pysearpc/pygencode.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pysearpc/pygencode.py b/pysearpc/pygencode.py index 9032ebb..b476a3b 100644 --- a/pysearpc/pygencode.py +++ b/pysearpc/pygencode.py @@ -72,11 +72,7 @@ def gen_module_funcs_array(): # generate fret methods array fret_array = "" - ret_types_list = [] - for item in func_table: - if item[0] not in ret_types_list: - ret_types_list.append(item[0]) - + ret_types_list = ["int", "int64", "string"] for item in ret_types_list: fret_array += gen_fret_funcs_array(item)