summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-11-19 20:34:10 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-11-19 20:34:10 +0000
commit1ff9910f595c1f50e1590caf19e839a917657b36 (patch)
tree407d598b311197be59ae6828d55b3d5dee4d6037 /Modules
parent74c29c71b1c9a68030e6b3fda6af54ca52b2c6c3 (diff)
downloadcpython-git-1ff9910f595c1f50e1590caf19e839a917657b36.tar.gz
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
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_fileio.c2
1 files changed, 1 insertions, 1 deletions
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 */