summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2000-08-15 00:37:32 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2000-08-15 00:37:32 (GMT)
commit557a044f74fffcb54ba65dd179953e8afe7d8485 (patch)
treeace467770cf23c8b73a620154e3fb0f37d1542db /Python
parent041307d95c60fd9c7859a6776358ec80282557dd (diff)
downloadcpython-557a044f74fffcb54ba65dd179953e8afe7d8485.zip
cpython-557a044f74fffcb54ba65dd179953e8afe7d8485.tar.gz
cpython-557a044f74fffcb54ba65dd179953e8afe7d8485.tar.bz2
Fix the parent of WindowsError - both the comments in this source file, and the previous exceptions.py have WindowsError as a sub-class of OSError.
Diffstat (limited to 'Python')
-rw-r--r--Python/exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c
index d9bf0a0..1d7fac4 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__},