summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-24 13:24:53 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-24 13:24:53 (GMT)
commited7711b7cb00cd2dfab52e9626f67632a3d75816 (patch)
treedc9e8718696efeef18b4695b07ae89b205aa654c /Python/bltinmodule.c
parent1c8230b70de22dd6f4d21132a7590f7a40044c44 (diff)
downloadcpython-ed7711b7cb00cd2dfab52e9626f67632a3d75816.zip
cpython-ed7711b7cb00cd2dfab52e9626f67632a3d75816.tar.gz
cpython-ed7711b7cb00cd2dfab52e9626f67632a3d75816.tar.bz2
Sorted exceptions; added ImportError.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 1a9bfc6..dd07e28 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -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