mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-12-02 12:17:35 +08:00
delete the output part in dot-utils
This commit is contained in:
parent
880e3ad969
commit
b5a7db0b66
@ -1,3 +1,7 @@
|
||||
"""undocumented"""
|
||||
|
||||
__all__ = []
|
||||
|
||||
import inspect
|
||||
import sys
|
||||
|
||||
@ -7,7 +11,8 @@ def doc_process(m):
|
||||
if inspect.isclass(obj) or inspect.isfunction(obj):
|
||||
if obj.__module__ != m.__name__:
|
||||
if obj.__doc__ is None:
|
||||
print(name, obj.__doc__)
|
||||
# print(name, obj.__doc__)
|
||||
pass
|
||||
else:
|
||||
module_name = obj.__module__
|
||||
while 1:
|
||||
@ -18,5 +23,5 @@ def doc_process(m):
|
||||
break
|
||||
module_name = ".".join(module_name.split('.')[:-1])
|
||||
if module_name == m.__name__:
|
||||
print(name, ": not found defined doc.")
|
||||
# print(name, ": not found defined doc.")
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user