mirror of
https://github.com/python/cpython.git
synced 2025-11-15 00:00:00 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -4578,7 +4578,7 @@ posix_fdopen(PyObject *self, PyObject *args)
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
return posix_error();
|
return posix_error();
|
||||||
f = PyFile_FromFile(fp, "(fdopen)", mode, fclose);
|
f = PyFile_FromFile(fp, "<fdopen>", mode, fclose);
|
||||||
if (f != NULL)
|
if (f != NULL)
|
||||||
PyFile_SetBufSize(f, bufsize);
|
PyFile_SetBufSize(f, bufsize);
|
||||||
return f;
|
return f;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue