]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Sorted exceptions; added ImportError.
authorGuido van Rossum <guido@python.org>
Tue, 24 Dec 1991 13:24:53 +0000 (13:24 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 24 Dec 1991 13:24:53 +0000 (13:24 +0000)
Python/bltinmodule.c

index 1a9bfc68e1dd7a7bf37e3f938dbb7a7d4991401f..dd07e28f42981a7e837ec78b69f6683b4b165a59 100644 (file)
@@ -605,6 +605,7 @@ getbuiltin(name)
 object *AttributeError;
 object *EOFError;
 object *IOError;
+object *ImportError;
 object *IndexError;
 object *KeyError;
 object *KeyboardInterrupt;
@@ -631,21 +632,22 @@ newstdexception(name)
 static void
 initerrors()
 {
-       RuntimeError = newstdexception("RuntimeError");
-       EOFError = newstdexception("EOFError");
-       TypeError = newstdexception("TypeError");
-       MemoryError = newstdexception("MemoryError");
-       NameError = newstdexception("NameError");
-       SystemError = newstdexception("SystemError");
-       KeyboardInterrupt = newstdexception("KeyboardInterrupt");
        AttributeError = newstdexception("AttributeError");
+       EOFError = newstdexception("EOFError");
        IOError = newstdexception("IOError");
-       ZeroDivisionError = newstdexception("ZeroDivisionError");
+       ImportError = newstdexception("ImportError");
        IndexError = newstdexception("IndexError");
-       ValueError = newstdexception("ValueError");
        KeyError = newstdexception("KeyError");
+       KeyboardInterrupt = newstdexception("KeyboardInterrupt");
+       MemoryError = newstdexception("MemoryError");
+       NameError = newstdexception("NameError");
        OverflowError = newstdexception("OverflowError");
+       RuntimeError = newstdexception("RuntimeError");
        SyntaxError = newstdexception("SyntaxError");
+       SystemError = newstdexception("SystemError");
+       TypeError = newstdexception("TypeError");
+       ValueError = newstdexception("ValueError");
+       ZeroDivisionError = newstdexception("ZeroDivisionError");
 }
 
 void