[Python-checkins] peps: FileSystemError is gone

antoine.pitrou python-checkins at python.org
Tue Aug 30 18:37:44 CEST 2011


http://hg.python.org/peps/rev/41e6dd694846
changeset:   3941:41e6dd694846
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Tue Aug 30 18:13:41 2011 +0200
summary:
  FileSystemError is gone

files:
  pep-3151.txt |  17 +++++------------
  1 files changed, 5 insertions(+), 12 deletions(-)


diff --git a/pep-3151.txt b/pep-3151.txt
--- a/pep-3151.txt
+++ b/pep-3151.txt
@@ -396,14 +396,11 @@
   as a generic timeout exception, replacing ``socket.timeout`` and also useful
   for other types of timeout (for example in Lock.acquire())
 
-In addition, the following exception class are proposed for inclusion:
+In addition, the following exception class is proposed for inclusion:
 
 * ``ConnectionError``: a base class for ``ConnectionAbortedError``,
   ``ConnectionRefusedError`` and ``ConnectionResetError``
 
-* ``FileSystemError``: a base class for ``FileExistsError``,
-  ``FileNotFoundError``, ``IsADirectoryError`` and ``NotADirectoryError``
-
 The following drawing tries to sum up the proposed additions, along with
 the corresponding errno values (where applicable).  The root of the
 sub-hierarchy (OSError, assuming `Step 1`_ is accepted in full) is not
@@ -415,12 +412,11 @@
         +-- ConnectionAbortedError                           ECONNABORTED
         +-- ConnectionRefusedError                           ECONNREFUSED
         +-- ConnectionResetError                               ECONNRESET
-    +-- FileSystemError
-        +-- FileExistsError                                        EEXIST
-        +-- FileNotFoundError                                      ENOENT
-        +-- IsADirectoryError                                      EISDIR
-        +-- NotADirectoryError                                    ENOTDIR
+    +-- FileExistsError                                            EEXIST
+    +-- FileNotFoundError                                          ENOENT
     +-- InterruptedError                                            EINTR
+    +-- IsADirectoryError                                          EISDIR
+    +-- NotADirectoryError                                        ENOTDIR
     +-- PermissionError                                     EACCES, EPERM
     +-- TimeoutError                                            ETIMEDOUT
 
@@ -432,9 +428,6 @@
 with the rest of the exception hiearchy, against is concision (especially
 with long names such as ``ConnectionAbortedError``).
 
-Another cosmetic issue is whether ``FileSystemError`` should be spelled
-``FilesystemError`` instead.
-
 Exception attributes
 --------------------
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list