summaryrefslogtreecommitdiffstats
path: root/Modules/_fileio.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-11-19 20:34:10 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-11-19 20:34:10 (GMT)
commit1ff9910f595c1f50e1590caf19e839a917657b36 (patch)
tree407d598b311197be59ae6828d55b3d5dee4d6037 /Modules/_fileio.c
parent74c29c71b1c9a68030e6b3fda6af54ca52b2c6c3 (diff)
downloadcpython-1ff9910f595c1f50e1590caf19e839a917657b36.zip
cpython-1ff9910f595c1f50e1590caf19e839a917657b36.tar.gz
cpython-1ff9910f595c1f50e1590caf19e839a917657b36.tar.bz2
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/_fileio.c')
-rw-r--r--Modules/_fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_fileio.c b/Modules/_fileio.c
index 0fd8b66..68b28d4 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 */