]> granicus.if.org Git - python/commit
bpo-32591: Fix PyExc_WarnFormat call (follow-up commit) (#5263)
authorYury Selivanov <yury@magic.io>
Mon, 22 Jan 2018 01:47:04 +0000 (20:47 -0500)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2018 01:47:04 +0000 (20:47 -0500)
commit3510334361d6d39aad89e4e0d9bccd0695668583
treea958b198d0afe94ed7b9098ead6e19eef89aa55a
parenta4afcdfa55ddffa4b9ae3b0cf101628c7bff4102
bpo-32591: Fix PyExc_WarnFormat call (follow-up commit) (#5263)

The previous version was correct in terms of behaviour, but
checking the return value of PyErr_WarnFormat allows to
avoid calling PyErr_Occurred and silences the coverity alarm.
Python/_warnings.c