summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-06 17:14:04 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-06 17:14:04 (GMT)
commit8ee524343445f7ac1c60df812deff17a92757c06 (patch)
treefc97584832519aed4994015ac2d0c3f1e1555d58 /Modules
parent97c5fccd773ad509f8fcf6be3708d90c4402772b (diff)
downloadcpython-8ee524343445f7ac1c60df812deff17a92757c06.zip
cpython-8ee524343445f7ac1c60df812deff17a92757c06.tar.gz
cpython-8ee524343445f7ac1c60df812deff17a92757c06.tar.bz2
Mark xreadlines deprecated. Don't use f.xreadlines() in test_iter.py.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/xreadlinesmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/xreadlinesmodule.c b/Modules/xreadlinesmodule.c
index 3009768..bf3c091 100644
--- a/Modules/xreadlinesmodule.c
+++ b/Modules/xreadlinesmodule.c
@@ -173,4 +173,6 @@ initxreadlines(void)
{
XReadlinesObject_Type.ob_type = &PyType_Type;
Py_InitModule("xreadlines", xreadlines_functions);
+ PyErr_Warn(PyExc_DeprecationWarning,
+ "xreadlines is deprecated; use 'for line in file'.");
}