[Python-checkins] r63265 - in python/trunk: Lib/plat-irix5/FILE.py Lib/plat-irix6/FILE.py Lib/test/test_py3kwarn.py Misc/NEWS

brett.cannon python-checkins at python.org
Thu May 15 05:17:24 CEST 2008


Author: brett.cannon
Date: Thu May 15 05:17:24 2008
New Revision: 63265

Log:
FILE from IRIX has been deprecated for removal in 3.0.

Modified:
   python/trunk/Lib/plat-irix5/FILE.py
   python/trunk/Lib/plat-irix6/FILE.py
   python/trunk/Lib/test/test_py3kwarn.py
   python/trunk/Misc/NEWS

Modified: python/trunk/Lib/plat-irix5/FILE.py
==============================================================================
--- python/trunk/Lib/plat-irix5/FILE.py	(original)
+++ python/trunk/Lib/plat-irix5/FILE.py	Thu May 15 05:17:24 2008
@@ -1,4 +1,7 @@
 # Generated by h2py from /usr/include/sys/file.h
+from warnings import warnpy3k
+warnpy3k("the FILE module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
 
 # Included from sys/types.h
 

Modified: python/trunk/Lib/plat-irix6/FILE.py
==============================================================================
--- python/trunk/Lib/plat-irix6/FILE.py	(original)
+++ python/trunk/Lib/plat-irix6/FILE.py	Thu May 15 05:17:24 2008
@@ -1,4 +1,7 @@
 # Generated by h2py from /usr/include/sys/file.h
+from warnings import warnpy3k
+warnpy3k("the FILE module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
 
 # Included from standards.h
 

Modified: python/trunk/Lib/test/test_py3kwarn.py
==============================================================================
--- python/trunk/Lib/test/test_py3kwarn.py	(original)
+++ python/trunk/Lib/test/test_py3kwarn.py	Thu May 15 05:17:24 2008
@@ -133,7 +133,7 @@
                         'ihooks', 'mhlib')
     inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb',
                                      'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
-                                     'gl', 'ERRNO'),
+                                     'gl', 'ERRNO', 'FILE'),
                           'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
                                       'icglue', 'Nav', 'MacOS', 'aepack',
                                       'aetools', 'aetypes', 'applesingle',

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Thu May 15 05:17:24 2008
@@ -32,6 +32,8 @@
 Library
 -------
 
+- The FILE module on IRIX has been deprecated for removal in Python 3.0.
+
 - The ERRNO module on IRIX has been deprecated for removal in Python 3.0.
 
 - The DEVICE, GL, gl, and cgen modules (which indirectly includes cgensupport)


More information about the Python-checkins mailing list