diff options
author | Guido van Rossum <guido@python.org> | 2000-02-17 15:18:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-17 15:18:10 (GMT) |
commit | 65a75b0d52e840fcb2ab19281570d7abdbf7ef08 (patch) | |
tree | 657d1352a54ea1d5159e159818a9f945a1b18727 | |
parent | db0c9f7f5b3b9a9ef25a2000ce35d7f13b7f848a (diff) | |
download | cpython-65a75b0d52e840fcb2ab19281570d7abdbf7ef08.zip cpython-65a75b0d52e840fcb2ab19281570d7abdbf7ef08.tar.gz cpython-65a75b0d52e840fcb2ab19281570d7abdbf7ef08.tar.bz2 |
Changes by Mark Hammond related to the new WindowsError exception.
-rw-r--r-- | Python/bltinmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 1d23281..bfbce43 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -2262,6 +2262,9 @@ PyObject *PyExc_UnboundLocalError; PyObject *PyExc_TypeError; PyObject *PyExc_ValueError; PyObject *PyExc_ZeroDivisionError; +#ifdef MS_WINDOWS +PyObject *PyExc_WindowsError; +#endif PyObject *PyExc_MemoryErrorInst; @@ -2303,6 +2306,9 @@ bltin_exc[] = { {"UnboundLocalError", &PyExc_UnboundLocalError, 1}, {"TypeError", &PyExc_TypeError, 1}, {"ValueError", &PyExc_ValueError, 1}, +#ifdef MS_WINDOWS + {"WindowsError", &PyExc_WindowsError, 1}, +#endif {"ZeroDivisionError", &PyExc_ZeroDivisionError, 1}, {NULL, NULL} }; |