Skip to content

Commit ac861b5

Browse files
committed
Deprecate the sv module as per PEP 4.
1 parent 43e5ef4 commit ac861b5

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

Doc/library/undoc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,6 @@ of reality.
226226

227227
:mod:`sv`
228228
--- Interface to the "simple video" board on SGI Indigo (obsolete hardware).
229+
230+
.. warning:: The :mod:`sv` module has been removed in Python 3.0.
229231

Lib/test/test_py3kwarn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ class TestStdlibRemovals(unittest.TestCase):
132132
'Bastion', 'compiler', 'dircache', 'fpformat',
133133
'ihooks', 'mhlib')
134134
inclusive_platforms = {'irix':('pure',)}
135-
optional_modules = ('bsddb185', 'Canvas', 'dl', 'linuxaudiodev', 'imageop')
135+
optional_modules = ('bsddb185', 'Canvas', 'dl', 'linuxaudiodev', 'imageop',
136+
'sv')
136137

137138
def check_removal(self, module_name, optional=False):
138139
"""Make sure the specified module, when imported, raises a

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Extension Modules
2626
Library
2727
-------
2828

29+
- The sv module has been deprecated for removal in Python 3.0.
30+
2931
- The multifile module has been deprecated as per PEP 4.
3032

3133
- The SocketServer module has been renamed 'socketserver'. The old

Modules/svmodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,10 @@ void
954954
initsv(void)
955955
{
956956
PyObject *m, *d;
957+
958+
if (PyErr_WarnPy3k("the sv module has been removed in "
959+
"Python 3.0", 2) < 0)
960+
return;
957961

958962
m = Py_InitModule("sv", sv_methods);
959963
if (m == NULL)

0 commit comments

Comments
 (0)