Skip to content

Commit

Permalink
stacklevel of 2 is the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 4, 2021
1 parent d940e63 commit 0460524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importlib_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class Deprecated:
warnings.warn,
"SelectableGroups dict interface is deprecated. Use select.",
DeprecationWarning,
stacklevel=3,
stacklevel=2,
)

def __getitem__(self, name):
Expand Down

0 comments on commit 0460524

Please sign in to comment.