[Python-checkins] CVS: python/dist/src/Lib posixfile.py,1.23,1.24

Fred L. Drake fdrake@users.sourceforge.net
Wed, 24 Oct 2001 15:03:38 -0700


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

Modified Files:
	posixfile.py 
Log Message:
Add a warning to the posixfile module stating that it will go away.

Index: posixfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/posixfile.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** posixfile.py	2001/09/18 05:40:24	1.23
--- posixfile.py	2001/10/24 22:03:35	1.24
***************
*** 54,57 ****
--- 54,64 ----
  """
  
+ import warnings
+ warnings.warn(
+     "The posixfile module is obsolete and will disappear in the future",
+     DeprecationWarning)
+ del warnings
+ 
+ 
  class _posixfile_:
      """File wrapper class that provides extra POSIX file routines."""