]> granicus.if.org Git - python/commitdiff
Changes by Mark Hammond related to the new WindowsError exception.
authorGuido van Rossum <guido@python.org>
Thu, 17 Feb 2000 15:18:10 +0000 (15:18 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Feb 2000 15:18:10 +0000 (15:18 +0000)
Python/bltinmodule.c

index 1d23281f9f90ebbfb9320f7040e4bf7d19e21bc5..bfbce43d22b023f3eca65a5477f0eeeeb3c31735 100644 (file)
@@ -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}
 };