diff options
-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} }; |