summaryrefslogtreecommitdiffstats
path: root/Modules/bz2module.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-06-13 01:46:31 (GMT)
committerGuido van Rossum <guido@python.org>2007-06-13 01:46:31 (GMT)
commit88e860c00584b74168ca486379dd04c07ed22fc4 (patch)
treeca9550adf3d0cf2a60b2e2568f06210e451191cb /Modules/bz2module.c
parent755114a22aa9e55288b379c097ceecdc5a72b84b (diff)
downloadcpython-88e860c00584b74168ca486379dd04c07ed22fc4.zip
cpython-88e860c00584b74168ca486379dd04c07ed22fc4.tar.gz
cpython-88e860c00584b74168ca486379dd04c07ed22fc4.tar.bz2
Fix bz2_test.py by removing the tests for universal newline mode.
If you want text support, wrap a TextIOWrapper around it. Remove references to universal newlines from the BZ2File docstring.
Diffstat (limited to 'Modules/bz2module.c')
-rw-r--r--Modules/bz2module.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index 6e8e85f..17cad42 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1294,17 +1294,8 @@ writing. When opened for writing, the file will be created if it doesn't\n\
exist, and truncated otherwise. If the buffering argument is given, 0 means\n\
unbuffered, and larger numbers specify the buffer size. If compresslevel\n\
is given, must be a number between 1 and 9.\n\
-")
-PyDoc_STR(
-"\n\
-Add a 'U' to mode to open the file for input with universal newline\n\
-support. Any line ending in the input file will be seen as a '\\n' in\n\
-Python. Also, a file so opened gains the attribute 'newlines'; the value\n\
-for this attribute is one of None (no newline read yet), '\\r', '\\n',\n\
-'\\r\\n' or a tuple containing all the newline types seen. Universal\n\
-newlines are available only when reading.\n\
-")
-;
+Data read is always returned in bytes; data written ought to be bytes.\n\
+");
static PyTypeObject BZ2File_Type = {
PyObject_HEAD_INIT(NULL)