Title: Move importlib over to PEP 3151 exceptions
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.3
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 2011-10-28 17:24 by brett.cannon. 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.
Date User Action Args
2011-10-28 17:24:34brett.cannonsetstatus: open -> closed
resolution: fixed
messages: + msg146573

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