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)
|
else (ENOTDIR)
|
||||||
|
|
||||||
* ``PermissionError``: trying to run an operation without the adequate access
|
* ``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
|
* ``BlockingIOError``: an operation would block on an object (e.g. socket) set
|
||||||
for non-blocking operation (EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS);
|
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)
|
* ``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
|
as a generic timeout exception, replacing ``socket.timeout`` and also useful
|
||||||
for other types of timeout (for example in Lock.acquire())
|
for other types of timeout (for example in Lock.acquire())
|
||||||
|
|
||||||
|
@ -413,8 +413,8 @@ shown::
|
||||||
+-- FileNotFoundError ENOENT
|
+-- FileNotFoundError ENOENT
|
||||||
+-- IsADirectoryError EISDIR
|
+-- IsADirectoryError EISDIR
|
||||||
+-- NotADirectoryError ENOTDIR
|
+-- NotADirectoryError ENOTDIR
|
||||||
+-- PermissionError EACCESS, EPERM
|
+-- PermissionError EACCES, EPERM
|
||||||
+-- TimeoutError ECONNTIMEOUT
|
+-- TimeoutError ETIMEDOUT
|
||||||
|
|
||||||
Naming
|
Naming
|
||||||
------
|
------
|
||||||
|
|
Loading…
Reference in New Issue