bpo-31572: Don't silence unexpected errors in the _warnings module. (#3731)
Get rid of _PyObject_HasAttrId() and PyDict_GetItemString(). Silence only expected AttributeError, KeyError and ImportError when get an attribute, look up in a dict or import a module.
S
Serhiy Storchaka committed
d4f8480dfe89447587550a85b61d4e9faf827e98
Parent: e2f92de
Committed by GitHub <noreply@github.com>
on 11/11/2017, 1:19:47 PM