Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
b9ae536e
"tests/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "e7c3454f12eb9297345490ad18f8dfc997231d03"
Unverified
Commit
b9ae536e
authored
Jul 31, 2020
by
Minjie Wang
Committed by
GitHub
Jul 31, 2020
Browse files
[Hotfix] fix excessive warnings (#1896)
parent
dbb028ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
python/dgl/_ffi/function.py
python/dgl/_ffi/function.py
+4
-2
No files found.
python/dgl/_ffi/function.py
View file @
b9ae536e
...
@@ -284,7 +284,8 @@ def _init_api_prefix(module_name, prefix):
...
@@ -284,7 +284,8 @@ def _init_api_prefix(module_name, prefix):
module
=
sys
.
modules
[
module_name
]
module
=
sys
.
modules
[
module_name
]
for
name
in
list_global_func_names
():
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
continue
name_split
=
name
.
rsplit
(
'.'
,
1
)
name_split
=
name
.
rsplit
(
'.'
,
1
)
if
name_split
[
0
]
!=
prefix
:
if
name_split
[
0
]
!=
prefix
:
...
@@ -304,7 +305,8 @@ def _init_api_prefix(module_name, prefix):
...
@@ -304,7 +305,8 @@ def _init_api_prefix(module_name, prefix):
def
_init_internal_api
():
def
_init_internal_api
():
for
name
in
list_global_func_names
():
for
name
in
list_global_func_names
():
if
not
name
.
startswith
(
"_"
):
if
not
name
.
startswith
(
"_"
)
or
name
.
startswith
(
'_deprecate'
):
# normal APIs are ignored
continue
continue
target_module
=
sys
.
modules
[
"dgl._api_internal"
]
target_module
=
sys
.
modules
[
"dgl._api_internal"
]
fname
=
name
fname
=
name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment