Visitar URL original
bpo-32591: Fix PyExc_WarnFormat call (follow-up commit_ by 1st1 · Pull Request #5263 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20250827082537/https://github.com/python/cpython/pull/5263
Skip to content

Conversation

1st1
Copy link
Member

@1st1 1st1 commented Jan 21, 2018 •

@njsmith
Copy link
Contributor

njsmith commented Jan 21, 2018

Don't you want a < 0 check there? I think the sense of the test is backwards.

Probably should also note for posterity that there original code was correct but less idiomatic; the patch here doesn't change behavior but does make the code make more sense to coverity.

@1st1 1st1 added the skip news label Jan 22, 2018
@1st1
Copy link
Member Author

1st1 commented Jan 22, 2018

Don't you want a < 0 check there? I think the sense of the test is backwards.

Agree.

@1st1 1st1 merged commit 3510334 into python:master Jan 22, 2018
@1st1 1st1 deleted the fix_unawaited branch January 22, 2018 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants