Commit bd6be7ab authored by Guido van Rossum's avatar Guido van Rossum

I think it makes more sense that the pseudo filename used by fdopen()

be "<fdopen>" rather than "(fdopen)".
parent 96aa0ace
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment