diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-19 14:33:35 +0200 |
|---|---|---|
| committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-19 14:33:35 +0200 |
| commit | 2606a6f197a49f04611cb5cb0d67404d1ab14481 (patch) | |
| tree | 35c228625105050ec2f593e6b362ce9e2498c760 /Modules/posixmodule.c | |
| parent | 8a045cb93bded97220422a957941bb68341429d1 (diff) | |
| download | cpython-git-2606a6f197a49f04611cb5cb0d67404d1ab14481.tar.gz | |
Issue #16719: Get rid of WindowsError. Use OSError instead
Patch by Serhiy Storchaka.
Diffstat (limited to 'Modules/posixmodule.c')
| -rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index cba3691007..10368b2c05 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1041,7 +1041,7 @@ win32_error_object(char* function, PyObject* filename) errno = GetLastError(); if (filename) return PyErr_SetExcFromWindowsErrWithFilenameObject( - PyExc_WindowsError, + PyExc_OSError, errno, filename); else |
