"If you think the sample code of this api is not suitable for the return result, please add the white list in FIle: tools/wlist_return.json first. And you must have one TPM(saxon-zh or swtkiwi or Boyan-Liu) approve for the white list."
)
# the minimum indent, which is the indent of the first
result=False
# non-empty line
else:
min_indent=check_indent(sampcd[0])
foryinrange(1,len(sampcd_begins)+1):
sampcd_to_write=[]
sampcd_begin=sampcd_begins[y-1]
foriinrange(0,len(sampcd)):
sampcd=srccom[sampcd_begin:]
cdline=sampcd[i]
sampcd=return_sample(htype,sampcd,'python')
# handle empty lines or those only with spaces/tabs
"Error: Your sample code have returned a result, but execute sample code don't get result!"
)
print(
"If you think the sample code of this api is not suitable for the return result, please add the white list in FIle: tools/wlist_return.json first. And you must have one TPM(saxon-zh or swtkiwi or Boyan-Liu) approve for the white list."
"Error: Mistake found in the return result of sample code."
)
print("There maybe three reasons for this error:")
print(
"1. The input of the sample code is a random number.Please add the white list in FIle: tools/return_white_list.txt first .And you must have one TPM(saxon-zh or swtkiwi or Boyan-Liu) approve for the white list."
)
print(
"2. The return value of the sample code is incorrect. Please check the code and reset the return value."
)
print(
"3. If you think the sample code of this api is not suitable for the return result, please add the white list in FIle: tools/wlist_return.json first. And you must have one TPM(saxon-zh or swtkiwi or Boyan-Liu) approve for the white list."
)
result=False
else:
else:
ifnamenotinwlist_return:
cdline=cdline.replace('\t',' ')
print_header(htype,hname)
sampcd_to_write.append(cdline[min_indent:])
print(
"Error: If you think the sample code of this api is not suitable for the return result, please add the white list in FIle: tools/wlist_return.json first. And you must have one TPM(saxon-zh or swtkiwi or Boyan-Liu) approve for the white list."