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

be "<fdopen>" rather than "(fdopen)".
This commit is contained in:
Guido van Rossum 2002-09-15 18:45:46 +00:00
parent 96aa0acef0
commit bd6be7aba5
1 changed files with 1 additions and 1 deletions

View File

@ -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;