From 65a75b0d52e840fcb2ab19281570d7abdbf7ef08 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 17 Feb 2000 15:18:10 +0000 Subject: [PATCH] Changes by Mark Hammond related to the new WindowsError exception. --- Python/bltinmodule.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 1d23281f9f..bfbce43d22 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} }; -- 2.40.0