]> granicus.if.org Git - python/commitdiff
I think it makes more sense that the pseudo filename used by fdopen()
authorGuido van Rossum <guido@python.org>
Sun, 15 Sep 2002 18:45:46 +0000 (18:45 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 15 Sep 2002 18:45:46 +0000 (18:45 +0000)
be "<fdopen>" rather than "(fdopen)".

Modules/posixmodule.c

index 90c0aaca49bb05fb69210e9352982436a3c2fd68..f0e3f0d86c67ee8088589614cab8e6798ee5d861 100644 (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;