This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Move importlib over to PEP 3151 exceptions
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon
Priority: normal Keywords: easy

Created on 2011-10-24 19:16 by brett.cannon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg146317 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2011-10-24 19:16
Importlib uses the errno module explicitly for properly checking OSError for EEXIST and IOError for EACCES. Thanks to PEP 3151, however, neither check is needed since those exceptions correspond to FileExistsError and PermissionError, respectively.

As long as posix.mkdir() uses the new exceptions, the entire need for errno goes away for the module, eliminating one more module required for bootstrapping.
msg146573 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2011-10-28 17:24
Florent inadvertently did this for me in rev 73169.
History
Date User Action Args
2022-04-11 14:57:23adminsetgithub: 57466
2011-10-28 17:24:34brett.cannonsetstatus: open -> closed
resolution: fixed
messages: + msg146573

stage: needs patch ->
2011-10-24 19:16:51brett.cannoncreate