diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-15 03:14:57 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-15 03:14:57 (GMT) |
commit | 2773b6f1c911e782bf1ed3ebd62b2e9ae6e53c70 (patch) | |
tree | 4dbf0b1f16516d51d936ac9547bc23e4f2426766 /Lib | |
parent | 044616aa244a7b78c27d774143ad17a72467d4ef (diff) | |
download | cpython-2773b6f1c911e782bf1ed3ebd62b2e9ae6e53c70.zip cpython-2773b6f1c911e782bf1ed3ebd62b2e9ae6e53c70.tar.gz cpython-2773b6f1c911e782bf1ed3ebd62b2e9ae6e53c70.tar.bz2 |
Deprecate ERRNO for removal in 3.0.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/plat-irix5/ERRNO.py | 3 | ||||
-rw-r--r-- | Lib/plat-irix6/ERRNO.py | 3 | ||||
-rw-r--r-- | Lib/test/test_py3kwarn.py | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/Lib/plat-irix5/ERRNO.py b/Lib/plat-irix5/ERRNO.py index d49e964..d9ab7a4 100755 --- a/Lib/plat-irix5/ERRNO.py +++ b/Lib/plat-irix5/ERRNO.py @@ -1,4 +1,7 @@ # Generated by h2py from /usr/include/errno.h +from warnings import warnpy3k +warnpy3k("the ERRNO module has been removed in Python 3.0", stacklevel=2) +del warnpy3k # Included from sys/errno.h __KBASE = 1000 diff --git a/Lib/plat-irix6/ERRNO.py b/Lib/plat-irix6/ERRNO.py index 1836fa0..ec8720a 100644 --- a/Lib/plat-irix6/ERRNO.py +++ b/Lib/plat-irix6/ERRNO.py @@ -1,4 +1,7 @@ # Generated by h2py from /usr/include/errno.h +from warnings import warnpy3k +warnpy3k("the ERRNO module has been removed in Python 3.0", stacklevel=2) +del warnpy3k # Included from sys/errno.h diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 4a08c51..c49f75d 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -133,7 +133,7 @@ class TestStdlibRemovals(unittest.TestCase): 'ihooks', 'mhlib') inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb', 'cdplayer', 'CL', 'cl', 'DEVICE', 'GL', - 'gl'), + 'gl', 'ERRNO'), 'darwin' : ('autoGIL', 'Carbon', 'OSATerminology', 'icglue', 'Nav', 'MacOS', 'aepack', 'aetools', 'aetypes', 'applesingle', |