Skip to content

Commit

Permalink
Use stacklevel=3
Browse files Browse the repository at this point in the history
  • Loading branch information
coroa committed Oct 29, 2020
1 parent 74cf7e9 commit 1a2770e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyam/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ def deprecation_warning(msg, type='This method'):
warnings.warn(
'{} {} {}'.format(type, warn, msg),
DeprecationWarning,
stacklevel=2
stacklevel=3
)

0 comments on commit 1a2770e

Please sign in to comment.