def FunctionPList(self, argList): """ Format an argument list """ # Default is "([type] arg, [type] arg, ...)" s = "(" if argList is None or argList == 'void': s += 'void' else: for arg in argList: if isinstance(arg, list): s += arg[0] + " " + arg[1] else: s += arg s += util.commaspace(arg, argList) s += ")" return s