Skip to content

Commit

Permalink
Modify stacklevel for deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Sep 26, 2024
1 parent df7d8aa commit 9114c18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions networkx/readwrite/json_graph/node_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def node_link_data(
warnings.warn(
"Keyword argument 'link' is deprecated; use 'edges' instead",
DeprecationWarning,
stacklevel=2,
)
if edges is not None:
raise ValueError(
Expand Down Expand Up @@ -273,6 +274,7 @@ def node_link_graph(
warnings.warn(
"Keyword argument 'link' is deprecated; use 'edges' instead",
DeprecationWarning,
stacklevel=2,
)
if edges is not None:
raise ValueError(
Expand Down

0 comments on commit 9114c18

Please sign in to comment.