From 1ff9910f595c1f50e1590caf19e839a917657b36 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Mon, 19 Nov 2007 20:34:10 +0000 Subject: Issue1395: Universal mode used to duplicate newlines when using read(1). "Universal newline" is now an incremental decoder wrapping the initial one, with its own additional buffer (if '\r' is seen at the end of the input). A decoder allows the tell() funtion to record the state of the translation. This also simplifies the readline() process. Now test_netrc passes on Windows, as well as many new tests in test_io.py --- Modules/_fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules') diff --git a/Modules/_fileio.c b/Modules/_fileio.c index 0fd8b66857..68b28d40cd 100644 --- a/Modules/_fileio.c +++ b/Modules/_fileio.c @@ -867,7 +867,7 @@ static PyGetSetDef fileio_getsetlist[] = { PyTypeObject PyFileIO_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) - "FileIO", + "_FileIO", sizeof(PyFileIOObject), 0, (destructor)fileio_dealloc, /* tp_dealloc */ -- cgit v1.2.1