Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65a75b0

Browse files
committed
Changes by Mark Hammond related to the new WindowsError exception.
1 parent db0c9f7 commit 65a75b0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Python/bltinmodule.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,6 +2262,9 @@ PyObject *PyExc_UnboundLocalError;
22622262
PyObject *PyExc_TypeError;
22632263
PyObject *PyExc_ValueError;
22642264
PyObject *PyExc_ZeroDivisionError;
2265+
#ifdef MS_WINDOWS
2266+
PyObject *PyExc_WindowsError;
2267+
#endif
22652268

22662269
PyObject *PyExc_MemoryErrorInst;
22672270

@@ -2303,6 +2306,9 @@ bltin_exc[] = {
23032306
{"UnboundLocalError", &PyExc_UnboundLocalError, 1},
23042307
{"TypeError", &PyExc_TypeError, 1},
23052308
{"ValueError", &PyExc_ValueError, 1},
2309+
#ifdef MS_WINDOWS
2310+
{"WindowsError", &PyExc_WindowsError, 1},
2311+
#endif
23062312
{"ZeroDivisionError", &PyExc_ZeroDivisionError, 1},
23072313
{NULL, NULL}
23082314
};

0 commit comments

Comments
 (0)