commit | fa5c315afa39c264e422336cc017853629cb680c | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Tue May 02 19:27:51 2000 +0000 |
committer | Barry Warsaw <barry@python.org> | Tue May 02 19:27:51 2000 +0000 |
tree | e7a3cfadcf0d2b0cf36e8f6929a4cb9749748eda | |
parent | 48719d3d1f116f6432040fea1754692038ba227c [diff] |
PyErr_GivenExceptionMatches(): Check for err==NULL and exc==NULL and return 0 (exceptions don't match). This means that if an ImportError is raised because exceptions.py can't be imported, the interpreter will exit "cleanly" with an error message instead of just core dumping. PyErr_SetFromErrnoWithFilename(), PyErr_SetFromWindowsErrWithFilename(): Don't test on Py_UseClassExceptionsFlag.