Fix the spelling of some errno mnemonics
(indirectly proving how easy to remember they are)
This commit is contained in:
parent
693281b82c
commit
4ae0dfca36
|
@ -369,7 +369,7 @@ the list of errnos mapped to them, is submitted to discussion:
|
|||
else (ENOTDIR)
|
||||
|
||||
* ``PermissionError``: trying to run an operation without the adequate access
|
||||
rights - for example filesystem permissions (EACCESS, EPERM)
|
||||
rights - for example filesystem permissions (EACCES, EPERM)
|
||||
|
||||
* ``BlockingIOError``: an operation would block on an object (e.g. socket) set
|
||||
for non-blocking operation (EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS);
|
||||
|
@ -385,7 +385,7 @@ the list of errnos mapped to them, is submitted to discussion:
|
|||
|
||||
* ``ConnectionResetError``: connection reset by peer (ECONNRESET)
|
||||
|
||||
* ``TimeoutError``: connection timed out (ECONNTIMEOUT); this can be re-cast
|
||||
* ``TimeoutError``: connection timed out (ETIMEDOUT); this can be re-cast
|
||||
as a generic timeout exception, replacing ``socket.timeout`` and also useful
|
||||
for other types of timeout (for example in Lock.acquire())
|
||||
|
||||
|
@ -413,8 +413,8 @@ shown::
|
|||
+-- FileNotFoundError ENOENT
|
||||
+-- IsADirectoryError EISDIR
|
||||
+-- NotADirectoryError ENOTDIR
|
||||
+-- PermissionError EACCESS, EPERM
|
||||
+-- TimeoutError ECONNTIMEOUT
|
||||
+-- PermissionError EACCES, EPERM
|
||||
+-- TimeoutError ETIMEDOUT
|
||||
|
||||
Naming
|
||||
------
|
||||
|
|
Loading…
Reference in New Issue