summaryrefslogtreecommitdiff
path: root/Python/exceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/exceptions.c')
-rw-r--r--Python/exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c
index d9bf0a0170..1d7fac46ce 100644
--- a/Python/exceptions.c
+++ b/Python/exceptions.c
@@ -883,7 +883,7 @@ static struct {
{"IOError", &PyExc_IOError, &PyExc_EnvironmentError, IOError__doc__},
{"OSError", &PyExc_OSError, &PyExc_EnvironmentError, OSError__doc__},
#ifdef MS_WINDOWS
- {"WindowsError", &PyExc_WindowsError, &PyExc_EnvironmentError,
+ {"WindowsError", &PyExc_WindowsError, &PyExc_OSError,
WindowsError__doc__},
#endif /* MS_WINDOWS */
{"EOFError", &PyExc_EOFError, 0, EOFError__doc__},