cpython: 8bf69413ec01 (original) (raw)
Mercurial > cpython
changeset 99478:8bf69413ec01
Issue #25717: Merge comment from 3.5 [#25717]
Martin Panter vadmium+py@gmail.com | |
---|---|
date | Sun, 06 Dec 2015 11:19:31 +0000 |
parents | 50a99be891bc(current diff)e9bf5803b716(diff) |
children | 5c670af0100f |
files | |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-)[+] [-] Modules/_io/fileio.c 3 |
line wrap: on
line diff
--- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -443,6 +443,9 @@ static int fstat_result = _Py_fstat_noraise(self->fd, &fdfstat); Py_END_ALLOW_THREADS if (fstat_result < 0) {
/* Tolerate fstat() errors other than EBADF. See Issue #25717, where[](#l1.7)
an anonymous file on a Virtual Box shared folder filesystem would[](#l1.8)
raise ENOENT. */[](#l1.9)
#ifdef MS_WINDOWS if (GetLastError() == ERROR_INVALID_HANDLE) { PyErr_SetFromWindowsErr(0);