未验证 提交 75cb6f55 编写于 作者: Z zhangchunle 提交者: GitHub

fix a bug in tools/sampcd_processor.py (#24325)

上级 d0b0e274
......@@ -478,8 +478,9 @@ def get_filenames():
filename = filename + module_py
else:
filename = ''
print("\n----Exception in get api filename----\n")
print("\nWARNING:----Exception in get api filename----\n")
print("\n" + api + ' module is ' + module + "\n")
if filename != '':
if filename not in filenames:
filenames.append(filename)
# get all methods
......@@ -492,7 +493,7 @@ def get_filenames():
name = '%s.%s' % (api.split('.')[-2], api.split('.')[-1])
else:
name = ''
print("\n----Exception in get api methods----\n")
print("\nWARNING:----Exception in get api methods----\n")
print("\n" + line + "\n")
print("\n" + api + ' method is None!!!' + "\n")
for j in range(2, len(module.split('.'))):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册