Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c68e723e
Commit
c68e723e
authored
Dec 06, 2015
by
Martin Panter
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25717: Merge comment from 3.5
parents
7da28d29
49d3db92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Modules/_io/fileio.c
Modules/_io/fileio.c
+3
-0
No files found.
Modules/_io/fileio.c
View file @
c68e723e
...
...
@@ -443,6 +443,9 @@ _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
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
an anonymous file on a Virtual Box shared folder filesystem would
raise ENOENT. */
#ifdef MS_WINDOWS
if
(
GetLastError
()
==
ERROR_INVALID_HANDLE
)
{
PyErr_SetFromWindowsErr
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment