[Python-checkins] python/dist/src/Modules xreadlinesmodule.c,1.12,1.13

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Tue, 06 Aug 2002 10:14:06 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv29047/Modules

Modified Files:
	xreadlinesmodule.c 
Log Message:
Mark xreadlines deprecated.  Don't use f.xreadlines() in test_iter.py.


Index: xreadlinesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/xreadlinesmodule.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** xreadlinesmodule.c	2 Aug 2002 02:27:13 -0000	1.12
--- xreadlinesmodule.c	6 Aug 2002 17:14:04 -0000	1.13
***************
*** 174,176 ****
--- 174,178 ----
  	XReadlinesObject_Type.ob_type = &PyType_Type;
  	Py_InitModule("xreadlines", xreadlines_functions);
+ 	PyErr_Warn(PyExc_DeprecationWarning,
+ 		   "xreadlines is deprecated; use 'for line in file'.");
  }