diff options
Diffstat (limited to 'Modules/xreadlinesmodule.c')
-rw-r--r-- | Modules/xreadlinesmodule.c | 2 |
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'."); } |