[Python-checkins] peps: Fix the spelling of some errno mnemonics

antoine.pitrou python-checkins at python.org
Thu May 12 22:07:24 CEST 2011


http://hg.python.org/peps/rev/15e36765eae3
changeset: 3880:15e36765eae3
user: Antoine Pitrou <solipsis at pitrou.net>
date: Thu May 12 22:07:21 2011 +0200
summary:
 Fix the spelling of some errno mnemonics
(indirectly proving how easy to remember they are)
files:
 pep-3151.txt | 8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pep-3151.txt b/pep-3151.txt
--- a/pep-3151.txt
+++ b/pep-3151.txt
@@ -369,7 +369,7 @@
 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 @@
 
 * ``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 @@
 +-- FileNotFoundError ENOENT
 +-- IsADirectoryError EISDIR
 +-- NotADirectoryError ENOTDIR
- +-- PermissionError EACCESS, EPERM
- +-- TimeoutError ECONNTIMEOUT
+ +-- PermissionError EACCES, EPERM
+ +-- TimeoutError ETIMEDOUT
 
 Naming
 ------
-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /