I think it makes more sense that the pseudo filename used by fdopen()
be "<fdopen>" rather than "(fdopen)".
This commit is contained in:
parent
96aa0acef0
commit
bd6be7aba5
|
@ -4578,7 +4578,7 @@ posix_fdopen(PyObject *self, PyObject *args)
|
|||
Py_END_ALLOW_THREADS
|
||||
if (fp == NULL)
|
||||
return posix_error();
|
||||
f = PyFile_FromFile(fp, "(fdopen)", mode, fclose);
|
||||
f = PyFile_FromFile(fp, "<fdopen>", mode, fclose);
|
||||
if (f != NULL)
|
||||
PyFile_SetBufSize(f, bufsize);
|
||||
return f;
|
||||
|
|
Loading…
Reference in New Issue