]> granicus.if.org Git - python/commit
Remove unneeded PyErr_Clear() calls after PyErr_Print(). (GH-8699)
authorZackery Spytz <zspytz@gmail.com>
Tue, 7 Aug 2018 14:26:58 +0000 (08:26 -0600)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 7 Aug 2018 14:26:58 +0000 (17:26 +0300)
commit8b58468032b8f87993a121c2b43f52648382a529
tree08e1d7381466e855e73d90ee541d23c6e6523b5e
parente4dcbbd7f4ac18d01c0ec85f64ae98b8281ed403
Remove unneeded PyErr_Clear() calls after PyErr_Print(). (GH-8699)

PyErr_Print() always clears the error indicator, so there is no need
to call PyErr_Clear() immediately afterwards.
Modules/main.c