-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-36853: Fix suspicious.py to actually print the unused rules #13579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
@JulienPalard Would be helpful to have a review of this. This fixes the error reported in https://bugs.python.org/issue36853. Thanks. |
Ah, cool. I came here (independently) to report this bug, but found this PR that fixes it instead. :) |
c8f36d1
to
f8391f7
Compare
seems @zooba also applied a similar patch, but used the deprecated I've rebased this to resolve the conflicts |
In 60419a7 |
@jaraco anything left to do here? |
This PR seems to have stalled. @JulienPalard, can you take a look please? |
Right. No need to leave this to languish longer. |
@jaraco: Please replace |
…onGH-13579) * Fix suspicious.py to actually print the unused rules * Fix the other `self.warn` calls (cherry picked from commit e1786b5) Co-authored-by: Anthony Sottile <[email protected]>
GH-15649 is a backport of this pull request to the 3.8 branch. |
Sorry, @asottile and @jaraco, I could not cleanly backport this to |
…3579) (GH-15649) * Fix suspicious.py to actually print the unused rules * Fix the other `self.warn` calls (cherry picked from commit e1786b5) Co-authored-by: Anthony Sottile <[email protected]>
@asottile Would you be willing to look at the cherry-pick? Thanks. |
yep! will do |
GH-15653 is a backport of this pull request to the 3.7 branch. |
…on#13579) * Fix suspicious.py to actually print the unused rules * Fix the other `self.warn` calls
…on#13579) * Fix suspicious.py to actually print the unused rules * Fix the other `self.warn` calls
…on#13579) * Fix suspicious.py to actually print the unused rules * Fix the other `self.warn` calls
There were two issues here:
self.warn
isn't a thing in modern sphinxlogger.warning
terminates immediately and then doesn't print the info lines below ithttps://bugs.python.org/issue36853