[Python-checkins] r63288 - in python/trunk: Lib/plat-irix5/jpeg.py Lib/plat-irix6/jpeg.py Lib/test/test_py3kwarn.py Misc/NEWS
brett.cannon
python-checkins at python.org
Thu May 15 05:44:00 CEST 2008
Author: brett.cannon
Date: Thu May 15 05:44:00 2008
New Revision: 63288
Log:
Deprecate jpeg for IRIX for removal in 3.0.
Modified:
python/trunk/Lib/plat-irix5/jpeg.py
python/trunk/Lib/plat-irix6/jpeg.py
python/trunk/Lib/test/test_py3kwarn.py
python/trunk/Misc/NEWS
Modified: python/trunk/Lib/plat-irix5/jpeg.py
==============================================================================
--- python/trunk/Lib/plat-irix5/jpeg.py (original)
+++ python/trunk/Lib/plat-irix5/jpeg.py Thu May 15 05:44:00 2008
@@ -4,6 +4,9 @@
# XXX It appears that compressing grayscale images doesn't work right;
# XXX the resulting file causes weirdness.
+from warnings import warnpy3k
+warnpy3k("the jpeg module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
class error(Exception):
pass
Modified: python/trunk/Lib/plat-irix6/jpeg.py
==============================================================================
--- python/trunk/Lib/plat-irix6/jpeg.py (original)
+++ python/trunk/Lib/plat-irix6/jpeg.py Thu May 15 05:44:00 2008
@@ -4,6 +4,9 @@
# XXX It appears that compressing grayscale images doesn't work right;
# XXX the resulting file causes weirdness.
+from warnings import warnpy3k
+warnpy3k("the jpeg module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
class error(Exception):
pass
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:44:00 2008
@@ -135,7 +135,7 @@
'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
'fm', 'GET', 'GLWS', 'imgfile', 'IN',
- 'IOCTL'),
+ 'IOCTL', 'jpeg'),
'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:44:00 2008
@@ -32,6 +32,8 @@
Library
-------
+- The jpeg module from IRIX has been deprecated for removal in Python 3.0.
+
- The IOCTL module from IRIX has been deprecated for removal in Python 3.0.
- The IN module from IRIX has been deprecated for removal in Python 3.0.
More information about the Python-checkins
mailing list