SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

bpo-32890, os: Use errno instead of GetLastError() in execve() and truncate() (GH-5784)

path_error() uses GetLastError() on Windows, but some os functions
are implemented via CRT APIs which report errors via errno.
This may result in raising OSError with invalid error code (such
as zero).

Introduce posix_path_error() function and use it where appropriate.
A
Alexey Izbyshev committed
834603112e6ca35944dd21105b01fca562dc3241
Parent: a267056
Committed by Victor Stinner <vstinner@redhat.com> on 10/20/2018, 12:28:22 AM