diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-03-27 23:44:46 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2023-03-27 23:44:46 +0200 |
commit | f2216559ffa3e48dfccda331f8951a906a32c771 (patch) | |
tree | f0063119a8ccdde83e7124434bee4d06955a39e0 /HISTORY.rst | |
parent | 64b4318bce1a2ba8dcc0b8f7cbaefeb029c12419 (diff) | |
download | psutil-f2216559ffa3e48dfccda331f8951a906a32c771.tar.gz |
When raising warning, always use stacklevel=2
B028: No explicit stacklevel argument found. The warn method from
the warnings module uses a stacklevel of 1 by default. This will
only show a stack trace for the line on which the warn method is
called. It is therefore recommended to use a stacklevel of 2 or
greater to provide more information to the user.
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Diffstat (limited to 'HISTORY.rst')
0 files changed, 0 insertions, 0 deletions