FL, flp, and fl from IRIX have been deprecated for removal in 3.0.
This commit is contained in:
parent
72ccc40db5
commit
178582e2a4
|
@ -2,6 +2,9 @@
|
||||||
# This corresponds to "forms.h".
|
# This corresponds to "forms.h".
|
||||||
# Recommended use: import FL; ... FL.NORMAL_BOX ... etc.
|
# Recommended use: import FL; ... FL.NORMAL_BOX ... etc.
|
||||||
# Alternate use: from FL import *; ... NORMAL_BOX ... etc.
|
# Alternate use: from FL import *; ... NORMAL_BOX ... etc.
|
||||||
|
from warnings import warnpy3k
|
||||||
|
warnpy3k("the FL module has been removed in Python 3.0", stacklevel=2)
|
||||||
|
del warnpy3k
|
||||||
|
|
||||||
_v20 = 1
|
_v20 = 1
|
||||||
_v21 = 1
|
_v21 = 1
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
#
|
#
|
||||||
# Jack Jansen, December 1991
|
# Jack Jansen, December 1991
|
||||||
#
|
#
|
||||||
|
from warnings import warnpy3k
|
||||||
|
warnpy3k("the flp module has been removed in Python 3.0", stacklevel=2)
|
||||||
|
del warnpy3k
|
||||||
|
|
||||||
import string
|
import string
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
# This corresponds to "forms.h".
|
# This corresponds to "forms.h".
|
||||||
# Recommended use: import FL; ... FL.NORMAL_BOX ... etc.
|
# Recommended use: import FL; ... FL.NORMAL_BOX ... etc.
|
||||||
# Alternate use: from FL import *; ... NORMAL_BOX ... etc.
|
# Alternate use: from FL import *; ... NORMAL_BOX ... etc.
|
||||||
|
from warnings import warnpy3k
|
||||||
|
warnpy3k("the FL module has been removed in Python 3.0", stacklevel=2)
|
||||||
|
del warnpy3k
|
||||||
|
|
||||||
_v20 = 1
|
_v20 = 1
|
||||||
_v21 = 1
|
_v21 = 1
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
#
|
#
|
||||||
# Jack Jansen, December 1991
|
# Jack Jansen, December 1991
|
||||||
#
|
#
|
||||||
|
from warnings import warnpy3k
|
||||||
|
warnpy3k("the flp module has been removed in Python 3.0", stacklevel=2)
|
||||||
|
del warnpy3k
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import FL
|
import FL
|
||||||
|
|
|
@ -133,7 +133,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
||||||
'ihooks', 'mhlib')
|
'ihooks', 'mhlib')
|
||||||
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'),
|
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl'),
|
||||||
'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,9 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- The FL, flp, and fl modules from IRIX have been deprecated for removal in
|
||||||
|
Python 3.0.
|
||||||
|
|
||||||
- The FILE module on IRIX has been deprecated for removal in Python 3.0.
|
- 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 ERRNO module on IRIX has been deprecated for removal in Python 3.0.
|
||||||
|
|
|
@ -2128,6 +2128,11 @@ static PyMethodDef forms_methods[] = {
|
||||||
PyMODINIT_FUNC
|
PyMODINIT_FUNC
|
||||||
initfl(void)
|
initfl(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (PyErr_WarnPy3k("the fl module has been removed in "
|
||||||
|
"Python 3.0", 2) < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
Py_InitModule("fl", forms_methods);
|
Py_InitModule("fl", forms_methods);
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue