Kaydet (Commit) 557a044f authored tarafından Mark Hammond's avatar Mark Hammond

Fix the parent of WindowsError - both the comments in this source file, and the…

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.
üst 041307d9
...@@ -883,7 +883,7 @@ static struct { ...@@ -883,7 +883,7 @@ static struct {
{"IOError", &PyExc_IOError, &PyExc_EnvironmentError, IOError__doc__}, {"IOError", &PyExc_IOError, &PyExc_EnvironmentError, IOError__doc__},
{"OSError", &PyExc_OSError, &PyExc_EnvironmentError, OSError__doc__}, {"OSError", &PyExc_OSError, &PyExc_EnvironmentError, OSError__doc__},
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
{"WindowsError", &PyExc_WindowsError, &PyExc_EnvironmentError, {"WindowsError", &PyExc_WindowsError, &PyExc_OSError,
WindowsError__doc__}, WindowsError__doc__},
#endif /* MS_WINDOWS */ #endif /* MS_WINDOWS */
{"EOFError", &PyExc_EOFError, 0, EOFError__doc__}, {"EOFError", &PyExc_EOFError, 0, EOFError__doc__},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment