From: Guido van Rossum Date: Sun, 15 Sep 2002 18:45:46 +0000 (+0000) Subject: I think it makes more sense that the pseudo filename used by fdopen() X-Git-Tag: v2.3c1~4071 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd6be7aba5e5bc374aec42cd2e0aa8dcc7d230fb;p=python I think it makes more sense that the pseudo filename used by fdopen() be "" rather than "(fdopen)". --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 90c0aaca49..f0e3f0d86c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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, "", mode, fclose); if (f != NULL) PyFile_SetBufSize(f, bufsize); return f;