diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2000-08-15 00:37:32 +0000 |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2000-08-15 00:37:32 +0000 |
commit | 7f72d2d670c30f3779238df38a30e831e64e0294 (patch) | |
tree | aeaf1887d6c919a061b30aa1c14179e87b579189 /Python/exceptions.c | |
parent | 16fa50ae128b19479484a2f3d9c2c8b77f4c27b4 (diff) | |
download | cpython-7f72d2d670c30f3779238df38a30e831e64e0294.tar.gz |
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/exceptions.c')
-rw-r--r-- | Python/exceptions.c | 2 |
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__}, |