Mercurial > cpython-lru_cache-weakref
diff Modules/xreadlinesmodule.c @ 24602:f5e29c7336dd legacy-trunk
Mark xreadlines deprecated. Don't use f.xreadlines() in test_iter.py.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 06 Aug 2002 17:14:04 +0000 |
| parents | f66b3a3509c7 |
| children | 5c9dcdc7fe8d |
line wrap: on
line diff
--- a/Modules/xreadlinesmodule.c Tue Aug 06 17:03:25 2002 +0000 +++ b/Modules/xreadlinesmodule.c Tue Aug 06 17:14:04 2002 +0000 @@ -173,4 +173,6 @@ { XReadlinesObject_Type.ob_type = &PyType_Type; Py_InitModule("xreadlines", xreadlines_functions); + PyErr_Warn(PyExc_DeprecationWarning, + "xreadlines is deprecated; use 'for line in file'."); }
