bpo-31572: Don't silence unexpected errors in the _warnings module. (… · python/cpython@d4f8480 · GitHub
Skip to content

Commit d4f8480

Browse files
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.
1 parent e2f92de commit d4f8480

1 file changed

Lines changed: 89 additions & 68 deletions

File tree

Python/_warnings.c

Lines changed: 89 additions & 68 deletions

0 commit comments

Comments
 (0)