]> granicus.if.org Git - python/commit
Instantiate the OS-related exception as soon as we raise it, so that "except"
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 Oct 2011 18:18:58 +0000 (20:18 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 Oct 2011 18:18:58 +0000 (20:18 +0200)
commit9ea8e4c29db12520bdd024357acf354b0653dd04
tree69a5b6afd52b695169956b5fdc282f4ff7fa6986
parentecd02074440b683b28f0946c2a03b499541d1ea8
Instantiate the OS-related exception as soon as we raise it, so that "except"
works properly.

PyErr_SetFromErrnoWithFilenameObject() was already fixed by the changeset
793c75177d28. This commit fixes PyErr_SetExcFromWindowsErrWithFilenameObject(),
used on Windows.
Lib/test/test_pep3151.py
Python/errors.c