deprecated-log-warn (PGH002)
Removed (since v0.2.0) · Related issues · View source
Derived from the pygrep-hooks linter.
Warning: This rule has been removed and its documentation is only available for historical reasons.
Fix is sometimes available.
Removed
This rule is identical to G010 which should be used instead.
What it does
Check for usages of the deprecated warn method from the logging module.
Why is this bad?
The warn method is deprecated. Use warning instead.
Example
Use instead: