Unverified Commit b9ae536e authored by Minjie Wang's avatar Minjie Wang Committed by GitHub
Browse files

[Hotfix] fix excessive warnings (#1896)

parent dbb028ac
......@@ -284,7 +284,8 @@ def _init_api_prefix(module_name, prefix):
module = sys.modules[module_name]
for name in list_global_func_names():
if not name.startswith('_deprecate') and name.startswith("_"):
if name.startswith("_") and not name.startswith('_deprecate'):
# internal APIs are ignored
continue
name_split = name.rsplit('.', 1)
if name_split[0] != prefix:
......@@ -304,7 +305,8 @@ def _init_api_prefix(module_name, prefix):
def _init_internal_api():
for name in list_global_func_names():
if not name.startswith("_"):
if not name.startswith("_") or name.startswith('_deprecate'):
# normal APIs are ignored
continue
target_module = sys.modules["dgl._api_internal"]
fname = name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment