mirror of https://github.com/python/cpython
Deprecated torgb for removal in 3.0.
This commit is contained in:
parent
518c5da219
commit
f56b6aeb06
|
@ -5,6 +5,9 @@
|
||||||
# Returned filename is either the input filename or a temporary filename;
|
# Returned filename is either the input filename or a temporary filename;
|
||||||
# in the latter case the caller must ensure that it is removed.
|
# in the latter case the caller must ensure that it is removed.
|
||||||
# Other temporary files used are removed by the function.
|
# Other temporary files used are removed by the function.
|
||||||
|
from warnings import warnpy3k
|
||||||
|
warnpy3k("the torgb module has been removed in Python 3.0", stacklevel=2)
|
||||||
|
del warnpy3k
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
# Returned filename is either the input filename or a temporary filename;
|
# Returned filename is either the input filename or a temporary filename;
|
||||||
# in the latter case the caller must ensure that it is removed.
|
# in the latter case the caller must ensure that it is removed.
|
||||||
# Other temporary files used are removed by the function.
|
# Other temporary files used are removed by the function.
|
||||||
|
from warnings import warnpy3k
|
||||||
|
warnpy3k("the torgb module has been removed in Python 3.0", stacklevel=2)
|
||||||
|
del warnpy3k
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
|
@ -136,7 +136,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
||||||
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
|
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
|
||||||
'fm', 'GET', 'GLWS', 'imgfile', 'IN',
|
'fm', 'GET', 'GLWS', 'imgfile', 'IN',
|
||||||
'IOCTL', 'jpeg', 'panel', 'panelparser',
|
'IOCTL', 'jpeg', 'panel', 'panelparser',
|
||||||
'readcd', 'SV'),
|
'readcd', 'SV', 'torgb'),
|
||||||
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
|
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
|
||||||
'icglue', 'Nav', 'MacOS', 'aepack',
|
'icglue', 'Nav', 'MacOS', 'aepack',
|
||||||
'aetools', 'aetypes', 'applesingle',
|
'aetools', 'aetypes', 'applesingle',
|
||||||
|
|
|
@ -32,6 +32,8 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- The torgb module from IRIX has been deprecated for removal in Python 3.0.
|
||||||
|
|
||||||
- The SV module from IRIX has been deprecated for removal in Python 3.0.
|
- The SV module from IRIX has been deprecated for removal in Python 3.0.
|
||||||
|
|
||||||
- The readcd module from IRIX has been deprecated for removal in Python 3.0.
|
- The readcd module from IRIX has been deprecated for removal in Python 3.0.
|
||||||
|
|
Loading…
Reference in New Issue