Commit ac861b5a authored by Brett Cannon's avatar Brett Cannon

Deprecate the sv module as per PEP 4.

parent 43e5ef49
...@@ -227,3 +227,5 @@ of reality. ...@@ -227,3 +227,5 @@ of reality.
:mod:`sv` :mod:`sv`
--- Interface to the "simple video" board on SGI Indigo (obsolete hardware). --- Interface to the "simple video" board on SGI Indigo (obsolete hardware).
.. warning:: The :mod:`sv` module has been removed in Python 3.0.
...@@ -132,7 +132,8 @@ class TestStdlibRemovals(unittest.TestCase): ...@@ -132,7 +132,8 @@ class TestStdlibRemovals(unittest.TestCase):
'Bastion', 'compiler', 'dircache', 'fpformat', 'Bastion', 'compiler', 'dircache', 'fpformat',
'ihooks', 'mhlib') 'ihooks', 'mhlib')
inclusive_platforms = {'irix':('pure',)} inclusive_platforms = {'irix':('pure',)}
optional_modules = ('bsddb185', 'Canvas', 'dl', 'linuxaudiodev', 'imageop') optional_modules = ('bsddb185', 'Canvas', 'dl', 'linuxaudiodev', 'imageop',
'sv')
def check_removal(self, module_name, optional=False): def check_removal(self, module_name, optional=False):
"""Make sure the specified module, when imported, raises a """Make sure the specified module, when imported, raises a
......
...@@ -26,6 +26,8 @@ Extension Modules ...@@ -26,6 +26,8 @@ Extension Modules
Library Library
------- -------
- The sv module has been deprecated for removal in Python 3.0.
- The multifile module has been deprecated as per PEP 4. - The multifile module has been deprecated as per PEP 4.
- The SocketServer module has been renamed 'socketserver'. The old - The SocketServer module has been renamed 'socketserver'. The old
......
...@@ -955,6 +955,10 @@ initsv(void) ...@@ -955,6 +955,10 @@ initsv(void)
{ {
PyObject *m, *d; PyObject *m, *d;
if (PyErr_WarnPy3k("the sv module has been removed in "
"Python 3.0", 2) < 0)
return;
m = Py_InitModule("sv", sv_methods); m = Py_InitModule("sv", sv_methods);
if (m == NULL) if (m == NULL)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment