mirror of https://github.com/python/cpython
Deprecate imgfile for removal in 3.0.
This commit is contained in:
parent
707e384a7a
commit
4652537ba4
|
@ -4,9 +4,10 @@
|
||||||
Roger E. Masse
|
Roger E. Masse
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from test.test_support import verbose, unlink, findfile
|
from test.test_support import verbose, unlink, findfile, import_module
|
||||||
|
|
||||||
import imgfile, uu
|
imgfile = import_module('imgfile', deprecated=True)
|
||||||
|
import uu
|
||||||
|
|
||||||
|
|
||||||
def testimage(name):
|
def testimage(name):
|
||||||
|
|
|
@ -134,7 +134,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
||||||
inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb',
|
inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb',
|
||||||
'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
|
'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
|
||||||
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
|
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
|
||||||
'fm', 'GET', 'GLWS'),
|
'fm', 'GET', 'GLWS', 'imgfile'),
|
||||||
'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 imgfile module from IRIX has been deprecated for removal in Python 3.0.
|
||||||
|
|
||||||
- The GLWS module from IRIX has been deprecated for removal in Python 3.0.
|
- The GLWS module from IRIX has been deprecated for removal in Python 3.0.
|
||||||
|
|
||||||
- The GET module from IRIX has been deprecated for removal in Python 3.0.
|
- The GET module from IRIX has been deprecated for removal in Python 3.0.
|
||||||
|
|
|
@ -491,6 +491,11 @@ void
|
||||||
initimgfile(void)
|
initimgfile(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
if (PyErr_WarnPy3k("the imgfile module has been removed in "
|
||||||
|
"Python 3.0", 2) < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
m = Py_InitModule("imgfile", imgfile_methods);
|
m = Py_InitModule("imgfile", imgfile_methods);
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue